Repository navigation
Expand file tree
/
Copy pathdocker-compose.server.yml
More file actions
118 lines (110 loc) · 3.72 KB
/
Copy pathdocker-compose.server.yml
File metadata and controls
118 lines (110 loc) · 3.72 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Candidate operational backend. Separate project/data from the development stack.
services:
postgres:
image: postgres:16-bookworm@sha256:a49f7438ba03589f9b1ca062f2da82e899b48ea1dc50d2449fa09a70be83ebca
cpus: ${VIDDYOOP_POSTGRES_CPUS-${VIDYOOP_POSTGRES_CPUS:-0.5}}
mem_limit: ${VIDDYOOP_POSTGRES_MEMORY-${VIDYOOP_POSTGRES_MEMORY:-512m}}
environment:
POSTGRES_USER: temporal
POSTGRES_DB: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
secrets: [postgres-password]
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/server/init-databases.sql:/docker-entrypoint-initdb.d/viddyoop.sql:ro
healthcheck:
test: [CMD-SHELL, "pg_isready -U temporal -d postgres"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
temporal-schema:
image: &admin-image temporalio/admin-tools:1.32.2@sha256:4a95866efba29d7e17ab012df5232795e8b0ad0f7d5f9d1ec4df321f7792a754
cpus: 0.5
mem_limit: 256m
depends_on:
postgres:
condition: service_healthy
secrets: [postgres-password]
volumes:
- ./scripts/server:/checks:ro
entrypoint: [sh, /checks/schema.sh]
read_only: true
tmpfs: ["/tmp:size=16777216,mode=1777"]
temporal:
image: temporalio/server:1.32.2@sha256:7bf69188a6232fea14869b9cef3d94aa82a1601d99517f7e86c71f22da4e0670
cpus: ${VIDDYOOP_TEMPORAL_CPUS-${VIDYOOP_TEMPORAL_CPUS:-1.0}}
mem_limit: ${VIDDYOOP_TEMPORAL_MEMORY-${VIDYOOP_TEMPORAL_MEMORY:-1g}}
depends_on:
temporal-schema:
condition: service_completed_successfully
environment:
DB: postgres12
DB_PORT: "5432"
POSTGRES_USER: temporal
POSTGRES_SEEDS: postgres
BIND_ON_IP: 0.0.0.0
NUM_HISTORY_SHARDS: "4"
SQL_MAX_CONNS: "10"
SQL_MAX_IDLE_CONNS: "10"
SQL_VIS_MAX_CONNS: "5"
SQL_VIS_MAX_IDLE_CONNS: "5"
TEMPORAL_ALLOW_NO_AUTH: "true"
DYNAMIC_CONFIG_FILE_PATH: /etc/temporal/dynamicconfig.yaml
secrets: [postgres-password]
volumes:
- ./scripts/server/dynamicconfig.yaml:/etc/temporal/dynamicconfig.yaml:ro
entrypoint: [sh, -ec, 'export POSTGRES_PWD="$$(cat /run/secrets/postgres-password)"; exec /etc/temporal/entrypoint.sh']
ports:
- "127.0.0.1:${VIDDYOOP_TEMPORAL_PORT-${VIDYOOP_TEMPORAL_PORT:-7233}}:7233"
healthcheck:
test: [CMD, nc, -z, 127.0.0.1, "7233"]
interval: 5s
timeout: 5s
retries: 30
read_only: true
tmpfs: ["/tmp:size=16777216,mode=1777"]
restart: unless-stopped
temporal-namespace:
image: *admin-image
cpus: 0.5
mem_limit: 256m
depends_on:
temporal:
condition: service_healthy
environment:
VIDDYOOP_NAMESPACE: ${VIDDYOOP_NAMESPACE-${VIDYOOP_NAMESPACE:-default}}
VIDDYOOP_HISTORY_RETENTION: ${VIDDYOOP_HISTORY_RETENTION-${VIDYOOP_HISTORY_RETENTION:-30d}}
volumes:
- ./scripts/server:/checks:ro
entrypoint: [sh, /checks/namespace.sh]
read_only: true
tmpfs: ["/tmp:size=16777216,mode=1777"]
pipeline:
extends:
file: docker-compose.yml
service: pipeline
depends_on:
temporal-namespace:
condition: service_completed_successfully
itunes-index:
extends:
file: docker-compose.yml
service: itunes-index
depends_on:
temporal-namespace:
condition: service_completed_successfully
itunes-import:
extends:
file: docker-compose.yml
service: itunes-import
depends_on:
temporal-namespace:
condition: service_completed_successfully
secrets:
postgres-password:
file: ${VIDDYOOP_POSTGRES_PASSWORD_FILE:-${VIDYOOP_POSTGRES_PASSWORD_FILE:-/__SET_VIDDYOOP_POSTGRES_PASSWORD_FILE__}}
volumes:
postgres-data:
work-data:
catalog-data: