-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
56 lines (53 loc) · 1.09 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
version: "3.8"
services:
db:
container_name: mbpl-db
build:
context: database
dockerfile: Dockerfile
ports:
- "127.0.0.1:3306:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_USER: library
MYSQL_PASSWORD: p@ssw0rd123
MYSQL_ROOT_PASSWORD: rootp@ssw0rd123
volumes:
- ./database/dump:/docker-entrypoint-initdb.d
- ./database/conf:/etc/mysql/conf.d
- persistent:/var/lib/mysql
networks:
- default
restart: always
bookstore:
container_name: mbpl-bookstore
build:
context: bookstore
dockerfile: Dockerfile
ports:
- "80:80"
volumes:
- ./bookstore/www/:/var/www/html/
links:
- db
depends_on:
- db
networks:
- default
restart: always
administrator:
container_name: mbpl-administrator
build:
context: administrator
dockerfile: Dockerfile
ports:
- "8080:80"
links:
- db
depends_on:
- db
networks:
- default
restart: always
volumes:
persistent: