-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
105 lines (105 loc) · 2.26 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
version: '3.9'
# this docker compose is for building all the images during development. This was the previous way of running the project.
services:
caddy:
build:
dockerfile: Frontend.Dockerfile
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
depends_on:
- server # server must be running already to allow health check to pass
redis:
image: redis/redis-stack-server:7.2.0-v10
volumes:
- redisdata:/data
logging:
driver: local
worker:
build:
dockerfile: Backend.Dockerfile
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:
build:
dockerfile: Backend.Dockerfile
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
- loki
"metrics":
build:
context: monitoring/prometheus
logging:
driver: local
"environment":
"CADDY_METRICS_URL": "http://caddy:2022"
"volumes":
- "prom_data:/prometheus"
"loki":
build:
context: monitoring/loki
logging:
driver: local
"volumes":
- "loki_data:/loki"
"grafana":
build:
context: monitoring/grafana
logging:
driver: local
"volumes":
- "grafana_data:/var/lib/grafana"
- "/var/log/grafana"
"environment":
LOKI_URL: "http://loki:3100"
METRICS_URL: "http://metrics:9090"
repl:
build:
dockerfile: Backend.Dockerfile
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: