forked from Emmy123222/Stellar-MicroPay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
87 lines (81 loc) · 1.92 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
87 lines (81 loc) · 1.92 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
version: "3.9"
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- frontend_static:/usr/share/nginx/html:ro
depends_on:
frontend:
condition: service_healthy
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
restart: always
networks:
- proxy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
volumes:
- frontend_static:/usr/share/nginx/html
environment:
- NEXT_PUBLIC_STELLAR_NETWORK=mainnet
- NEXT_PUBLIC_HORIZON_URL=https://horizon.stellar.org
- NEXT_PUBLIC_API_URL=https://stellarmicropay.io/api
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
restart: always
networks:
- proxy
- frontend
backend:
build:
context: ./backend
dockerfile: Dockerfile.prod
environment:
- PORT=4000
- NODE_ENV=production
- STELLAR_NETWORK=mainnet
- HORIZON_URL=https://horizon.stellar.org
- ALLOWED_ORIGINS=https://stellarmicropay.io
- FEDERATION_DOMAIN=stellarmicropay.io
- FEDERATION_DOMAINS=stellarmicropay.io,stellarmicropay.com
secrets:
- jwt_secret
- server_private_key
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: always
networks:
- frontend
- backend
volumes:
frontend_static:
secrets:
jwt_secret:
file: ./secrets/jwt_secret.txt
server_private_key:
file: ./secrets/server_private_key.txt
networks:
proxy:
driver: bridge
frontend:
driver: bridge
backend:
driver: bridge
internal: true