46 lines
959 B
YAML
46 lines
959 B
YAML
|
version: "3.5"
|
||
|
|
||
|
services:
|
||
|
server:
|
||
|
build:
|
||
|
context: ./server
|
||
|
dockerfile: Dockerfile.test
|
||
|
networks:
|
||
|
- web
|
||
|
- internal
|
||
|
environment:
|
||
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
|
||
|
POSTGRES_USER: kalkutago
|
||
|
POSTGRES_DB: kalkutago_TEST
|
||
|
POSTGRES_HOST: database
|
||
|
secrets: [ postgres-password, cookie-secret ]
|
||
|
depends_on: [ database ]
|
||
|
expose: [ 8000 ]
|
||
|
volumes:
|
||
|
- ./client/dist:/src/public:ro
|
||
|
labels:
|
||
|
traefik.enable: false
|
||
|
|
||
|
database:
|
||
|
image: postgres
|
||
|
environment:
|
||
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
|
||
|
POSTGRES_USER: kalkutago
|
||
|
POSTGRES_DB: kalkutago_TEST
|
||
|
secrets: [ postgres-password ]
|
||
|
networks: [ internal ]
|
||
|
labels:
|
||
|
traefik.enable: false
|
||
|
|
||
|
secrets:
|
||
|
postgres-password:
|
||
|
file: ${PG_PW_FILE}
|
||
|
cookie-secret:
|
||
|
file: ${COOKIE_SECRET_FILE}
|
||
|
|
||
|
networks:
|
||
|
internal:
|
||
|
internal: true
|
||
|
web:
|
||
|
external: true
|