up
This commit is contained in:
@@ -4,3 +4,5 @@ frontend/dist/
|
||||
migrations/
|
||||
certificates/
|
||||
packages/
|
||||
|
||||
/cudy/
|
||||
|
||||
@@ -5,7 +5,7 @@ x-app: &app
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.backend
|
||||
environment:
|
||||
environment: &app-environment
|
||||
APP_MODE: venue
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:?}:${POSTGRES_PASSWORD:?}@postgres_evening_detective_server:5432/${POSTGRES_DB:?}?sslmode=disable
|
||||
APP_BASE_URL: ${APP_BASE_URL:?}
|
||||
@@ -64,6 +64,11 @@ services:
|
||||
|
||||
evening_detective_server:
|
||||
<<: *app
|
||||
environment:
|
||||
<<: *app-environment
|
||||
CUDY_SNAPSHOT_FILE: /run/cudy/state.json
|
||||
volumes:
|
||||
- cudy_state:/run/cudy:ro
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
@@ -102,6 +107,20 @@ services:
|
||||
condition: service_completed_successfully
|
||||
restart: "no"
|
||||
|
||||
cudy_collector:
|
||||
image: evening-detective-venue-app:1
|
||||
command: [/usr/local/bin/evening_detective_server, --collect-cudy]
|
||||
environment:
|
||||
CUDY_URL: ${CUDY_URL:-http://192.168.10.1}
|
||||
CUDY_PASSWORD_FILE: ${CUDY_PASSWORD_FILE:-}
|
||||
CUDY_SNAPSHOT_FILE: /run/cudy/state.json
|
||||
volumes:
|
||||
- ./cudy:/run/secrets/cudy:ro
|
||||
- cudy_state:/run/cudy
|
||||
networks:
|
||||
- entrance
|
||||
restart: unless-stopped
|
||||
|
||||
evening_detective_frontend:
|
||||
image: byjg/static-httpserver:latest
|
||||
environment:
|
||||
@@ -129,6 +148,7 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
cudy_state:
|
||||
# Preserve existing data from the former Compose project.
|
||||
postgres_data:
|
||||
name: evening-detective-local_postgres_data
|
||||
|
||||
Reference in New Issue
Block a user