-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
107 lines (97 loc) · 2.24 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
106
107
version: "3.6"
volumes:
static_vol:
database_vol:
log_vol:
prometheus_vol:
grafana_vol:
services:
redis:
image: redis:7.0.8
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
postgres:
image: postgres:15.1
restart: unless-stopped
user: postgres
secrets:
- postgres_password
environment:
POSTGRES_USER: postgres
POSTGRES_DB: mutaplasmid
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
volumes:
- database_vol:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
prometheus:
image: prom/prometheus
restart: unless-stopped
volumes:
- prometheus_vol:/prometheus
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
node-exporter:
image: prom/node-exporter
restart: unless-stopped
grafana:
image: grafana/grafana
restart: unless-stopped
secrets:
- grafana_password
environment:
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_password
volumes:
- grafana_vol:/var/lib/grafana
ports:
- 3000:3000
migrate:
build:
context: ./backend/
secrets: &django-secrets
- postgres_password
- configuration
volumes: &django-volumes
- static_vol:/static
- log_vol:/logs
- ./backend:/code
restart: "no"
entrypoint: /code/run/migrate.sh
depends_on:
postgres:
condition: service_healthy
server:
build:
context: ./backend/
secrets: *django-secrets
restart: unless-stopped
volumes: *django-volumes
depends_on: &django-dependencies
redis:
condition: service_healthy
postgres:
condition: service_healthy
migrate:
condition: service_completed_successfully
ports:
- 33760:8000
consumer:
build:
context: ./backend/
secrets: *django-secrets
restart: unless-stopped
volumes: *django-volumes
entrypoint: /code/run/consumer.sh
depends_on: *django-dependencies
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 33761:5173
volumes:
- ./frontend/:/code/