forked from VATSIM-Radar/vatsim-radar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·37 lines (36 loc) · 923 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·37 lines (36 loc) · 923 Bytes
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
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"
depends_on:
db:
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