-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (62 loc) · 1.46 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: "3"
#NETWORK
networks:
backendkenshu2:
driver: bridge
#VOLUMES
volumes:
dir-site:
driver_opts:
device: /Users/cao.sonduc/backend_kenshu/sites/
o: bind
type: bind
services:
#container PHP
php:
container_name: php
build:
dockerfile: Dockerfile
context: ./php/
tty: true
restart: always
networks:
- backendkenshu2
volumes:
- dir-site:/home/sites/
env_file:
- ./php/php.env
#container Apache HTTPD
httpd:
container_name: httpd
image: "httpd:latest"
restart: always
networks:
- backendkenshu2
volumes:
- dir-site:/home/sites/
- ./httpd.conf:/usr/local/apache2/conf/httpd.conf
ports:
- "9999:80" # localhost:9999
#container MySQL
mysql:
container_name: mysql
image: "mysql:latest"
restart: always
networks:
- backendkenshu2
volumes:
- ./mysql/db:/var/lib/mysql
- ./mysql/my.cnf:/etc/mysql/my.cnf
env_file:
- ./mysql/mysql.env
#container phpmyadmin
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
env_file:
- ./pma.env
restart: always
ports:
- 8080:80
networks:
- backendkenshu2