-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.worker.yml
More file actions
30 lines (30 loc) · 1.04 KB
/
docker-compose.worker.yml
File metadata and controls
30 lines (30 loc) · 1.04 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
services:
worker:
container_name: ${COMPOSE_INSTANCE_NAME:?COMPOSE_INSTANCE_NAME must be set in the generated .env}-worker
# Rc.63: images are pulled by commit_short, not version_tag.
image: ghcr.io/statisticsnorway/statbus-worker:${COMMIT_SHORT:?COMMIT_SHORT not set — run ./sb config generate}
build:
context: ./cli
profiles:
- "all"
- "all_except_app"
environment:
# Docker environment detection
RUNNING_IN_DOCKER: "true"
# Only expose variables needed by the CLI config
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_APP_DB: ${POSTGRES_APP_DB}
POSTGRES_ADMIN_USER: ${POSTGRES_ADMIN_USER}
POSTGRES_ADMIN_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
# Logging variables
SEQ_SERVER_URL: ${SEQ_SERVER_URL:-https://log.statbus.org}
SEQ_API_KEY: ${SEQ_API_KEY}
VERSION: ${VERSION}
# Debug flags from .env
VERBOSE: ${VERBOSE:-0}
DEBUG: ${DEBUG:-0}
restart: unless-stopped
depends_on:
db:
condition: service_healthy