34 lines
637 B
YAML
34 lines
637 B
YAML
services:
|
|
nginx:
|
|
build:
|
|
context: ./nginx
|
|
ports:
|
|
- 3000:80
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
network_mode: service:nginx
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DB_FILE_NAME=file:local.db
|
|
- SESSION_SECRET=secret
|
|
network_mode: service:nginx
|
|
|
|
init:
|
|
platform: linux/amd64
|
|
build:
|
|
context: ./init
|
|
restart: "on-failure"
|
|
depends_on:
|
|
nginx:
|
|
condition: service_started
|
|
environment:
|
|
- ADMIN_PASSWORD=supersecretpassword
|
|
- FLAG_1=NOT-THE-REAL-FLAG-1
|
|
network_mode: service:nginx
|