-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
executable file
·73 lines (70 loc) · 1.89 KB
/
docker-compose.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
68
69
70
71
72
73
services:
frontend:
build:
context: .
dockerfile: .config/dev.Dockerfile
env_file:
- ./.env
container_name: vatsim-radar
expose:
- 8080
- 9229
command: /radar/.config/command.sh
ports:
- "8080:8080"
volumes:
- ".:/radar:rw"
healthcheck:
test: "bash -c 'echo -n > /dev/tcp/127.0.0.1/8080'"
interval: 1s
retries: 360
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
worker:
build:
context: .
dockerfile: .config/dev.Dockerfile
env_file:
- ./.env
container_name: vatsim-radar-worker
command: /radar/.config/worker.sh
ports:
- 8880:8880
volumes:
- ".:/radar:rw"
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
frontend:
condition: service_healthy
db:
image: mysql
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:
- .config/db:/var/lib/mysql
redis:
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