-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.41 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
version: '2.1'
services:
mariadb:
image: mariadb:5.5.60
container_name: RO_DB
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_LOG_CONSOLE=true
volumes:
- ./ROEmulator/usr/local/mysql/data:/var/lib/mysql
ports:
- 3306:3306
networks:
vpn:
ipv4_address: 172.168.99.2
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 5s
retries: 10
apache:
container_name: RO_WEB
build:
context: ./ROEmulator/docker/apache2
dockerfile: ./Dockerfile
volumes:
- ./ROEmulator/docker/apache2/httpd.conf:/etc/apache2/apache2.conf
- ./ROEmulator/docker/apache2/logs:/var/log/apache2/logs
- ./ROEmulator/docker/apache2/www:/var/www/html
ports:
- 8096:8096
depends_on:
mariadb:
condition: service_healthy
networks:
vpn:
ipv4_address: 172.168.99.3
metabase:
image: metabase/metabase:v0.39.2
container_name: RO_DB_UI
environment:
- MB_DB_FILE=/metabase-data
volumes:
- ./ROEmulator/docker/metabase/data:/metabase-data
ports:
- 3000:3000
depends_on:
mariadb:
condition: service_healthy
networks:
vpn:
ipv4_address: 172.168.99.4
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.99.0/24
gateway: 172.168.99.1