2023-06-20 08:40:35 -04:00
|
|
|
version: "3.5"
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
# build: ./server
|
|
|
|
build:
|
|
|
|
context: ./server
|
|
|
|
dockerfile: Dockerfile.debug
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- internal
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
|
|
|
|
POSTGRES_USER: kalkutago
|
|
|
|
POSTGRES_DB: kalkutago
|
|
|
|
POSTGRES_HOST: database
|
|
|
|
secrets: [ postgres-password ]
|
|
|
|
depends_on: [ database ]
|
|
|
|
volumes:
|
|
|
|
- ./client/dist:/src/public:ro
|
|
|
|
database:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
|
|
|
|
POSTGRES_USER: kalkutago
|
|
|
|
POSTGRES_DB: kalkutago
|
|
|
|
secrets: [ postgres-password ]
|
|
|
|
networks: [ internal ]
|
|
|
|
volumes:
|
|
|
|
- ./db.mount:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
postgres-password:
|
|
|
|
file: ./server/postgres.pw
|
2023-06-26 10:59:37 -04:00
|
|
|
cookie-secret:
|
|
|
|
file: ./server/cookie-secret.pw
|
2023-06-20 08:40:35 -04:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal:
|
|
|
|
internal: true
|
|
|
|
web:
|
|
|
|
external: true
|