-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-stack.yaml
96 lines (95 loc) · 2.28 KB
/
docker-stack.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
version: '3.9'
# run docker swarm init && docker stack deploy -c docker-stack.yaml
services:
caddy:
image: registry.digitalocean.com/fdcr/filing-deadlines/frontend:latest
restart: on-failure
ports:
- "80:80"
- "443:443"
- "3002:3002"
volumes:
- caddy_data:/data
- caddy_config:/config
environment:
SERVER_PORT: 3000
env_file:
- .url.env
logging:
driver: local
redis:
image: redis/redis-stack-server
volumes:
- redisdata:/data
logging:
driver: local
worker:
image: registry.digitalocean.com/fdcr/filing-deadlines/backend:latest
working_dir: /filing-deadlines/worker
environment:
REDIS_URL: redis://redis:6379
LOKI_URL: "http://loki:3100"
env_file:
- .api.env
logging:
driver: local
depends_on:
- redis
server:
image: registry.digitalocean.com/fdcr/filing-deadlines/backend:latest
working_dir: /filing-deadlines/server
environment:
REDIS_URL: redis://redis:6379
PORT: 3000
LOKI_URL: "http://loki:3100"
env_file:
- .api.env
- .xero.env
- .auth0.env
- .server.env
- .url.env
- .stripe.env
logging:
driver: local
depends_on:
- redis
"metrics":
image: registry.digitalocean.com/fdcr/filing-deadlines/metrics:latest
logging:
driver: local
"environment":
"CADDY_METRICS_URL": "http://caddy:2022"
"volumes":
- "prom_data:/prometheus"
"loki":
image: registry.digitalocean.com/fdcr/filing-deadlines/loki:latest
logging:
driver: local
"volumes":
- "loki_data:/loki"
"grafana":
image: registry.digitalocean.com/fdcr/filing-deadlines/grafana:latest
logging:
driver: local
"volumes":
- "grafana_data:/var/lib/grafana"
- "/var/log/grafana"
"environment":
LOKI_URL: "http://loki:3100"
METRICS_URL: "http://metrics:9090"
repl:
image: registry.digitalocean.com/fdcr/filing-deadlines/backend:latest
command: tail -f /dev/null
working_dir: /filing-deadlines/repl
depends_on:
- redis
"environment":
REDIS_URL: redis://redis:6379
LOKI_URL: "http://loki:3100"
volumes:
redisdata:
caddy_data:
caddy_config:
grafana_data:
loki_data:
prom_data: