-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.prod.yml
67 lines (64 loc) · 1.49 KB
/
docker-compose.prod.yml
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
services:
app1: &frontend
restart: always
image: ghcr.io/vatsim-radar/vatsim-radar/production
depends_on:
redis:
condition: service_started
db:
condition: service_healthy
healthcheck:
test: "bash -c 'echo -n > /dev/tcp/127.0.0.1/3000'"
interval: 1s
retries: 360
ports:
- 8080:3000
volumes:
- /opt/radar-data:/radar/src/data
app2:
<<: *frontend
ports:
- 8081:3000
worker:
image: ghcr.io/vatsim-radar/vatsim-radar/production
container_name: app-worker
restart: always
command: /radar/.config/worker-prod.sh
volumes:
- /opt/radar-data:/radar/src/data
ports:
- 8880:8880
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
redis:
restart: always
image: redis
command: redis-server /usr/local/etc/redis/redis.conf --requirepass RADAR
expose:
- 6379
environment:
- REDIS_APPLICATION_MODE=master
volumes:
- ./.config/redis.conf:/usr/local/etc/redis/redis.conf
db:
image: mysql
restart: always
container_name: db
cap_add:
- SYS_NICE
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=radar
- MYSQL_ROOT_PASSWORD=localhost
ports:
- '3306:3306'
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 5s
interval: 5s
retries: 40
volumes:
- /opt/db:/var/lib/mysql