-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1.4 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
version: "3.3"
services:
app:
# build: .
image: michaelscz/nedi
container_name: nedi-app
restart: unless-stopped
ports:
- 8180:80
#- 514:514/udp
volumes:
- conf:/var/nedi/conf
hostname: 'nedi'
environment:
CRON: "15 * * * *"
healthcheck:
test: ["CMD", "nc", "-vz", "localhost","80"]
interval: 10s
timeout: 1s
retries: 20
depends_on:
- db
networks:
- lan
db:
#image: mysql:8.0
image: mariadb:10-focal
container_name: nedi-db
restart: unless-stopped
command:
- --default-authentication-plugin=mysql_native_password
volumes:
- mysqldata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: dbpa55
hostname: 'mariadb'
healthcheck:
test: ["CMD", "[", "-e", "/run/mysqld/mysqld.sock", "]" ]
interval: 10s
timeout: 1s
retries: 20
networks:
- lan
adminer:
image: adminer
container_name: nedi-adminer
restart: unless-stopped
hostname: 'adminer'
ports:
- 8181:8080
depends_on:
- db
networks:
- lan
networks:
lan:
volumes:
conf:
mysqldata: