write-ups-challenges-2024-2025/photos/docker-compose.yaml
2024-11-25 22:32:02 +01:00

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