forked from Black-Tek/BlackTek-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (51 loc) · 1.15 KB
/
docker-compose.yaml
File metadata and controls
55 lines (51 loc) · 1.15 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
services:
server-db:
image: mariadb:latest
pull_policy: always
restart: always
command: [
"--default-authentication-plugin=mysql_native_password",
"--character-set-server=utf8mb4"
]
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: blacktekserver
MYSQL_USER: blacktekserver
MYSQL_PASSWORD: blacktekpassword
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
- ./db-data:/var/lib/mysql
networks:
- blacktek-net
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "127.0.0.1", "-u", "blacktekserver", "-pblacktekpassword"]
interval: 5s
timeout: 5s
retries: 20
start_period: 5s
whodb:
image: clidey/whodb:latest
restart: always
ports:
- "8080:8080"
networks:
- blacktek-net
server:
build:
context: .
restart: always
ports:
- "7171:7171"
- "7172:7172"
volumes:
- .:/srv
networks:
- blacktek-net
depends_on:
server-db:
condition: service_healthy
volumes:
server-db-data:
networks:
blacktek-net:
driver: bridge