-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
74 lines (71 loc) · 1.85 KB
/
docker-compose.yml
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
version: "3.9"
services:
reverse-proxy:
build: ./reverse-proxy
environment:
HTTPS: ${HTTPS}
FRONTEND_DOMAIN_NAME: ${FRONTEND_DOMAIN_NAME}
BACKEND_DOMAIN_NAME: ${BACKEND_DOMAIN_NAME}
DOMAIN_VALIDATION_KEY: ${DOMAIN_VALIDATION_KEY}
ports:
- "80:80"
- "443:443"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ${DATA_DIRECTORY}/reverse-proxy/etc-letsencrypt:/etc/letsencrypt/
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
frontend:
build: ./frontend
environment:
BACKEND_URL: ${BACKEND_URL}
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
backend:
build: ./backend
environment:
NODE_ENV: ${ENVIRONMENT}
SESSION_SECRET: ${SESSION_SECRET}
PI_API_KEY: ${PI_API_KEY}
WALLET_PRIVATE_SEED: ${WALLET_PRIVATE_SEED}
PLATFORM_API_URL: ${PLATFORM_API_URL}
MONGO_HOST: mongo
MONGODB_DATABASE_NAME: ${MONGODB_DATABASE_NAME}
MONGODB_USERNAME: ${MONGODB_USERNAME}
MONGODB_PASSWORD: ${MONGODB_PASSWORD}
FRONTEND_URL: ${FRONTEND_URL}
OPENAI_API_URL: ${OPENAI_API_URL}
OPENAI_API_KEY: ${OPENAI_API_KEY}
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
mongo:
image: mongo:5.0
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
ports:
- 27027:27017
volumes:
- ${DATA_DIRECTORY}/mongo/data:/data/db
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s