-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-caddy.yml
More file actions
77 lines (71 loc) · 1.95 KB
/
Copy pathdocker-compose-caddy.yml
File metadata and controls
77 lines (71 loc) · 1.95 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
services:
engine_local:
image: 'optionedge/engine:1.0.208'
container_name: engine_local
restart: always
ports:
- "7500:8080"
environment:
- TZ=Asia/Kolkata
- Auth:Domain=https://auth.optionedge.in/oidc
- Auth:Audience=https://api.optionedge.in
- ASPNETCORE_ENVIRONMENT=Production
- RuntimeSettings__ProfileApiBaseUrl=https://api.optionedge.in/
- RuntimeSettings__MessageQueueConnectionString=host=rabbitmq_local:5672;virtualhost=/;username=guest;password=guest;persistentMessages=false
- RuntimeSettings__DataFolder=/app/data
- RuntimeSettings__UpgradeServiceUrl=http://upgrade_service:8080
- RUNNING_IN_CONTAINER=true
depends_on:
- rabbitmq_local
volumes:
- ./data:/app/data
networks:
- optionedge_local
upgrade_service:
image: 'optionedge/upgrade-service:1.0.208'
container_name: upgrade_service
restart: always
ports:
- "127.0.0.1:9999:8080"
environment:
- TZ=Asia/Kolkata
- ASPNETCORE_ENVIRONMENT=Production
volumes:
- ./:/app/optionedge
- /var/run/docker.sock:/var/run/docker.sock
networks:
- optionedge_local
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
rabbitmq_local:
image: rabbitmq:4.0-management-alpine
container_name: rabbitmq_local
restart: always
volumes:
- ./.queue/queue/data/:/var/lib/rabbitmq/
- ./.queue/queue/log/:/var/log/rabbitmq
networks:
- optionedge_local
caddy:
image: caddy:2-alpine
container_name: caddy_proxy
restart: always
ports:
- "7500:7500"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- engine_local
networks:
- optionedge_local
volumes:
caddy_data:
caddy_config:
networks:
optionedge_local: