old-website/docker-compose.yml

40 lines
894 B
YAML
Raw Normal View History

2023-06-18 18:06:01 +00:00
version: "3.9"
services:
db:
image: postgres:alpine
restart: unless-stopped
volumes:
2023-06-19 12:12:22 +00:00
- ./data/postgres:/var/lib/postgresql/data
2023-06-18 18:06:01 +00:00
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
2023-06-19 12:12:22 +00:00
# proxy:
# image: caddy:alpine
# restart: unless-stopped
# ports:
# - "80:80"
# volumes:
# - ./data/caddy/Caddyfile:/etc/caddy/Caddyfile
# - ./data/static:/website/static
# - ./data/media:/website/media
2023-06-18 21:50:07 +00:00
2023-06-18 18:06:01 +00:00
website:
build: website
restart: unless-stopped
volumes:
2023-06-19 12:12:22 +00:00
- ./data/static:/app/static
- ./data/media:/app/media
2023-06-18 18:06:01 +00:00
environment:
DJANGO_KEY: ${DJANGO_KEY}
2023-06-18 21:50:07 +00:00
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
depends_on:
- db
ports:
2023-06-19 12:12:22 +00:00
- "8000:8000"