02845e65db
Added features: * register * authenticate * RLS as summarized in security_considerations.md Improve * Use enhanced graphiql version to be able to set authentication headers Remove: * docker-compose.prod.yml since it is not updated for now (and we do not have a production env)
70 lines
1.3 KiB
YAML
70 lines
1.3 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
redaktion:
|
|
build:
|
|
context: ./redaktions-app/
|
|
dockerfile: ./dev.Dockerfile
|
|
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/
|
|
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",
|
|
"--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"
|
|
]
|
|
networks:
|
|
- frontend
|
|
- backend
|
|
|
|
networks:
|
|
backend:
|
|
frontend:
|
|
|
|
volumes:
|
|
db-data:
|