-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.next.yml
64 lines (61 loc) · 1.48 KB
/
docker-compose.next.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
services:
app-next:
container_name: app-next
restart: always
image: ghcr.io/vatsim-radar/vatsim-radar/next
depends_on:
redis:
condition: service_started
db-next:
condition: service_healthy
ports:
- 8080:3000
healthcheck:
test: "bash -c 'echo -n > /dev/tcp/127.0.0.1/3000'"
interval: 1s
retries: 360
volumes:
- /opt/radar-next-data:/radar/src/data
worker:
image: ghcr.io/vatsim-radar/vatsim-radar/next
container_name: app-worker
restart: always
command: /radar/.config/worker-prod.sh
ports:
- 8880:8880
volumes:
- /opt/radar-next-data:/radar/src/data
depends_on:
db-next:
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-next:
image: mysql
restart: always
container_name: db-next
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-next:/var/lib/mysql