21 lines
401 B
YAML
Executable File
21 lines
401 B
YAML
Executable File
services:
|
|
pg_db:
|
|
image: postgres:alpine
|
|
env_file:
|
|
- .env
|
|
restart: always
|
|
container_name: postgres_dsc
|
|
ports:
|
|
- ${DB_PORT}:5432
|
|
# networks:
|
|
# - app_network
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASS}
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
|
|
volumes:
|
|
postgres_data:
|