feat: add postgres
This commit is contained in:
commit
7c94985783
22
compose.yml
Normal file
22
compose.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: '3.9'
|
||||||
|
name: teacinema
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
container_name: teacinema-postgres
|
||||||
|
image: postgres:15-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- "${POSTGRES_PORT}:5432"
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- teacinema
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
redis_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
teacinema:
|
||||||
Loading…
x
Reference in New Issue
Block a user