dd2f414f00
To be more in sync with typical graphql servers.
75 lines
1.4 KiB
YAML
75 lines
1.4 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
redaktion:
|
|
build:
|
|
context: ./redaktions-app/
|
|
dockerfile: ./dev.Dockerfile
|
|
stdin_open: true
|
|
depends_on:
|
|
- graphql
|
|
ports:
|
|
- '8081:3000'
|
|
networks:
|
|
- frontend
|
|
|
|
user-app:
|
|
build:
|
|
context: ./candymat-user-app/
|
|
dockerfile: ./dev.Dockerfile
|
|
depends_on:
|
|
- graphql
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- frontend
|
|
|
|
postgres:
|
|
image: candymat-postgres:11.5
|
|
build:
|
|
dockerfile: ./Dockerfile
|
|
context: ./backend/
|
|
environment:
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
env_file: ./backend/backend.env
|
|
ports:
|
|
- "5432:5432"
|
|
restart: always
|
|
volumes:
|
|
- "db-data:/var/lib/postgresql/data"
|
|
networks:
|
|
- backend
|
|
|
|
graphql:
|
|
restart: always
|
|
image: graphile/postgraphile
|
|
depends_on:
|
|
- postgres
|
|
env_file: ./backend/backend.env
|
|
ports:
|
|
- "5433:5000"
|
|
command: [
|
|
"--connection", $DATABASE_URL,
|
|
"--host", "0.0.0.0",
|
|
"--port", "5000",
|
|
"--cors",
|
|
"--schema", "candymat_data",
|
|
"--default-role", "candymat_anonymous",
|
|
"--jwt-token-identifier", "candymat_data.jwt_token",
|
|
"--jwt-secret", $JWT_SECRET,
|
|
"--watch",
|
|
"--retry-on-init-fail",
|
|
"--enhance-graphiql",
|
|
"--classic-ids",
|
|
]
|
|
networks:
|
|
- frontend
|
|
- backend
|
|
|
|
networks:
|
|
backend:
|
|
frontend:
|
|
|
|
volumes:
|
|
db-data:
|