forked from monoid-privacy/monoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
163 lines (160 loc) · 4.31 KB
/
docker-compose.yaml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: "3.7"
services:
db:
image: postgres:14.6-alpine3.16
container_name: monoid-db
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_USER=${DATABASE_USER}
volumes:
- db:/var/lib/postgresql/data
- ./monoid-api/config-data/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- monoid-network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 10
web:
container_name: monoid-web
image: monoidco/monoid-web:${VERSION}
networks:
- monoid-network
temporal:
container_name: monoid-temporal
depends_on:
- db
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PWD=${DATABASE_PASSWORD}
- POSTGRES_SEEDS=monoid-db
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
image: temporalio/auto-setup:1.18.4
networks:
- monoid-network
volumes:
- ./monoid-api/config-data/temporal:/etc/temporal/config/dynamicconfig
healthcheck:
test:
[
"CMD",
"tctl",
"--address",
"monoid-temporal:7233",
"workflow",
"list"
]
interval: 1s
timeout: 5s
retries: 30
api:
container_name: monoid-api
environment:
- WEB_URL=${WEB_URL}
- DB_USER=${DATABASE_USER}
- DB_PASS=${DATABASE_PASSWORD}
- DB_TCP_HOST=monoid-db
- DB_PORT=5432
- DB_NAME=${DATABASE_NAME}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- TEMP_STORE_PATH=/tmp/monoid
- SEGMENT_KEY=${SEGMENT_KEY}
- RESOURCE_PATH=/app/config-data/resources
- FILESTORE_PATH=${FILESTORE_PATH}
- TEMPORAL=monoid-temporal:7233
- STORAGE_TYPE=${STORAGE_TYPE}
# Uncomment these lines if you're using gcs
# - GOOGLE_CLOUD_JSON=/gcloudcreds.json
# - GCS_BUCKET=${GCS_BUCKET}
depends_on:
db:
condition: service_healthy
loader:
condition: service_completed_successfully
temporal:
condition: service_healthy
networks:
- monoid-network
image: monoidco/monoid-api:${VERSION}
volumes:
- filestore:${FILESTORE_PATH}
- tempstore:/tmp/monoid
- ./monoid-config/resources:${RESOURCE_PATH}
# Uncomment this line if using gcs
# - ${LOCAL_GOOGLE_CLOUD_JSON}:/gcloudcreds.json
loader:
container_name: monoid-loader
command: /app/config-data
environment:
- DB_USER=${DATABASE_USER}
- DB_PASS=${DATABASE_PASSWORD}
- DB_TCP_HOST=monoid-db
- DB_PORT=5432
- DB_NAME=${DATABASE_NAME}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- SEGMENT_KEY=${SEGMENT_KEY}
depends_on:
db:
condition: service_healthy
networks:
- monoid-network
image: monoidco/monoid-loader:${VERSION}
worker:
container_name: monoid-worker
environment:
- WEB_URL=${WEB_URL}
- DB_USER=${DATABASE_USER}
- DB_PASS=${DATABASE_PASSWORD}
- DB_TCP_HOST=monoid-db
- TEMP_STORE_PATH=/tmp/monoid
- DB_PORT=5432
- DB_NAME=${DATABASE_NAME}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- SEGMENT_KEY=${SEGMENT_KEY}
- FILESTORE_PATH=${FILESTORE_PATH}
- TEMPORAL=monoid-temporal:7233
- STORAGE_TYPE=${STORAGE_TYPE}
# Uncomment these lines if you're using gcs
# - GOOGLE_CLOUD_JSON=/gcloudcreds.json
# - GCS_BUCKET=${GCS_BUCKET}
depends_on:
db:
condition: service_healthy
loader:
condition: service_completed_successfully
temporal:
condition: service_healthy
networks:
- monoid-network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- filestore:${FILESTORE_PATH}
- tempstore:/tmp/monoid
# Uncomment this line if using gcs
# - ${LOCAL_GOOGLE_CLOUD_JSON}:/gcloudcreds.json
image: monoidco/monoid-worker:${VERSION}
proxy:
depends_on:
- web
- api
container_name: monoid-proxy
networks:
- monoid-network
ports:
- 8080:80
image: monoidco/monoid-proxy:${VERSION}
networks:
monoid-network:
driver: bridge
name: monoid-network
volumes:
db:
name: monoid-db
filestore:
name: monoid-filestore
tempstore:
name: monoid-tempstore