-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
executable file
·64 lines (54 loc) · 1.19 KB
/
docker-compose.yaml
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
version: '1.0'
services:
web-server:
hostname: wanderlust
container_name: wl-server
build:
dockerfile: php.Dockerfile
context: .
restart: always
volumes:
- ./public:/var/www/public
- ./app:/var/www/app
networks:
- wanderlust-network
ports:
- 8000:80
- 8002:8080
mysql-server:
hostname: wl-mysql
container_name: wl-mysql
# image: mysql:8.1
build:
dockerfile: mysql.Dockerfile
context: .
restart: always
# ports:
# - 8006:3306
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- mysql-data:/var/lib/mysql
# database
- ./database:/docker-entrypoint-initdb.d
# entrypoint: /usr/local/bin/docker-entrypoint.sh
# command: cd docker-entrypoint-initdb.d && ./migrate.sh import
networks:
- wanderlust-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8007:80
environment:
PMA_HOST: mysql-server
PMA_USER: root
PMA_PASSWORD: root
networks:
- wanderlust-network
volumes:
mysql-data:
networks:
wanderlust-network:
driver: bridge
name: wanderlust-network