forked from omidabc/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 999 Bytes
/
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
version: "3"
services:
mariadb:
image: mariadb
environment:
- MYSQL_DATABASE=racktables
- MYSQL_USER=racktables
- MYSQL_PASSWORD=password123
- MYSQL_RANDOM_ROOT_PASSWORD=password123
volumes:
- ./db_data:/var/lib/mysql
networks:
- db_network
racktables:
build: .
environment:
- DBHOST=mariadb
- DBNAME=racktables
- DBUSER=racktables
- DBPASS=password123
networks:
- db_network
- web_network
volumes:
- racktables:/opt/racktables/wwwroot
nginx:
image: nginx:stable-alpine
volumes:
- racktables:/opt/racktables/wwwroot
- ./nginx.conf:/etc/nginx/nginx.conf
# - ./racktables-contribs/:/racktables-contribs/
ports:
- 80:80
depends_on:
- racktables
- mariadb
networks:
- web_network
# volumes_from:
# - racktables
networks:
web_network:
db_network:
volumes:
racktables:
# driver: local-persist
# driver_opts:
# mountpoint: ./racktables/