You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
www.tagesschule-elementa.ch/docker-compose.yml

32 lines
608 B
YAML

version: '3'
services:
web:
build: "."
links:
- "db:postgres"
volumes:
- .:/app:rw
- ${DATA_DIR}:/data:rw
- ${STATIC_DIR}:/app/static_collected
- ${MEDIA_DIR}:/app/data/media
networks:
- db_network
command: "/bin/sh -c '/app/wait-for-postgres.sh postgres /app/run.sh'"
ports:
- ${HTTP_PORT}:80
env_file:
- ./.env
db:
image: postgres:9.6-alpine
env_file:
- ./.env-db
volumes:
- ${POSTGRES_DATA_DIR}:/var/lib/postgresql/data:rw
networks:
- db_network
networks:
db_network:
driver: bridge