-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (97 loc) · 2.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
107 lines (97 loc) · 2.27 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3'
networks:
loki:
volumes:
db:
scoro_logs:
meilisearch:
services:
nginx:
image: nginx:1.15-alpine
restart: unless-stopped
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- "front"
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
back:
image: ghcr.io/chroma-case/back:main
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
meilisearch:
condition: service_healthy
env_file:
- .env
volumes:
- ./assets:/assets
- ./data:/data
restart: unless-stopped
scorometer:
image: ghcr.io/chroma-case/scorometer:main
env_file:
- .env
ports:
- "6543:6543"
volumes:
- ./assets:/assets
- scoro_logs:/logs
restart: unless-stopped
db:
container_name: db
image: postgres:alpine3.14
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
front:
image: ghcr.io/chroma-case/front:main
environment:
- API_URL=http://back:3000/
- SCOROMETER_URL=http://scorometer:6543/
- NGINX_PORT=80
depends_on:
- "back"
- "scorometer"
env_file:
- .env
restart: unless-stopped
meilisearch:
image: getmeili/meilisearch:v1.5
ports:
- "7700:7700"
volumes:
- meilisearch:/meili_data
env_file:
- .env
healthcheck:
test:
- CMD
- wget
- '--no-verbose'
- '--spider'
- 'http://localhost:7700/health'
retries: 3
timeout: 5s