41 lines
802 B
YAML
41 lines
802 B
YAML
name: prodman
|
|
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_DB=${DB_NAME}
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASS}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
web:
|
|
build: .
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- staticfiles:/app/staticfiles
|
|
- mediafiles:/app/media
|
|
expose:
|
|
- "8000"
|
|
depends_on:
|
|
- db
|
|
|
|
nginx:
|
|
image: nginx:1.25-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- staticfiles:/app/staticfiles:ro
|
|
- mediafiles:/app/media:ro
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- web
|
|
|
|
volumes:
|
|
postgres_data:
|
|
staticfiles:
|
|
mediafiles: |