kandimat/docker-compose.prod.yml
2020-01-31 23:01:08 +01:00

43 lines
860 B
YAML

version: '3.1'
services:
redaktion:
container_name: redaktions-app
build:
context: ./redaktions-app/
dockerfile: ./prod.Dockerfile
ports:
- '80:80'
postgres:
image: candymat-postgres:11.5
build:
dockerfile: ./Dockerfile
context: ./backend/
env_file: ./backend/.env-backend
volumes:
- "db-data:/var/lib/postgresql/data"
ports:
- "5432:5432"
restart: always
networks:
- backend
graphql:
restart: always
image: graphile/postgraphile
depends_on:
- postgres
env_file: ./backend/.env-backend
ports:
- "5000:5000"
command: ["--connection", $DATABASE_URL, "--host", "0.0.0.0", "--port", "5000", "--schema", "candymat_data", "--watch"]
networks:
- frontend
- backend
networks:
backend:
frontend:
volumes:
db-data: