-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.app.yml
More file actions
44 lines (44 loc) · 2.4 KB
/
docker-compose.app.yml
File metadata and controls
44 lines (44 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This file requires a `.env` file generated by
# ./sb config generate
#
services:
app:
container_name: ${COMPOSE_INSTANCE_NAME:?COMPOSE_INSTANCE_NAME must be set in the generated .env}-app
# Rc.63: images are pulled by commit_short, not version_tag.
# COMMIT_SHORT is generated in .env by `./sb config generate`.
image: ghcr.io/statisticsnorway/statbus-app:${COMMIT_SHORT:?COMMIT_SHORT not set — run ./sb config generate}
build:
context: ./app
args:
DEBUG: ${DEBUG:?DEBUG must be set in the generated .env}
ports:
- "${APP_BIND_ADDRESS:?APP_BIND_ADDRESS must be set in the generated .env}:3000"
profiles:
- "all"
- "app"
environment:
RUNNING_IN_DOCKER: 'true' # To differentiate from true local dev (pnpm run dev on host)
PUBLIC_BROWSER_REST_URL: ${PUBLIC_BROWSER_REST_URL}
SERVER_REST_URL: "http://proxy:80"
SEQ_SERVER_URL: ${SEQ_SERVER_URL:-https://log.statbus.org}
SEQ_API_KEY: ${SEQ_API_KEY:?SEQ_API_KEY must be set in the generated .env}
PUBLIC_DEPLOYMENT_SLOT_NAME: ${DEPLOYMENT_SLOT_NAME:?DEPLOYMENT_SLOT_NAME must be set in the generated .env}
PUBLIC_DEPLOYMENT_SLOT_CODE: ${DEPLOYMENT_SLOT_CODE:?DEPLOYMENT_SLOT_CODE must be set in the generated .env}
POSTGRES_APP_DB: statbus_${DEPLOYMENT_SLOT_CODE:?DEPLOYMENT_SLOT_CODE must be set in the generated .env}
POSTGRES_APP_USER: statbus_${DEPLOYMENT_SLOT_CODE:?DEPLOYMENT_SLOT_CODE must be set in the generated .env}
POSTGRES_APP_PASSWORD: ${POSTGRES_APP_PASSWORD:?POSTGRES_APP_PASSWORD must be set in the generated .env}
POSTGRES_NOTIFY_USER: ${POSTGRES_NOTIFY_USER:?POSTGRES_NOTIFY_USER must be set in the generated .env}
POSTGRES_NOTIFY_PASSWORD: ${POSTGRES_NOTIFY_PASSWORD:?POSTGRES_NOTIFY_PASSWORD must be set in the generated .env}
POSTGRES_AUTHENTICATOR_USER: authenticator
POSTGRES_AUTHENTICATOR_PASSWORD: ${POSTGRES_AUTHENTICATOR_PASSWORD:?POSTGRES_AUTHENTICATOR_PASSWORD must be set in the generated .env}
POSTGRES_HOST: db
POSTGRES_PORT: 5432
VERSION: ${VERSION:-local}
PUBLIC_STATBUS_VERSION: ${VERSION:-local}
PUBLIC_STATBUS_COMMIT_SHORT: ${COMMIT_SHORT:-unknown}
DEBUG: ${DEBUG:?DEBUG must be set in the generated .env}
PUBLIC_DEBUG: ${PUBLIC_DEBUG:?PUBLIC_DEBUG must be set in the generated .env}
restart: unless-stopped
depends_on:
db:
condition: service_healthy