-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml
54 lines (50 loc) · 1.08 KB
/
docker-compose.override.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
version: "3.7"
services:
app:
build:
context: ./
dockerfile: Dockerfile
container_name: app
working_dir: /var/www/html
volumes:
- ./html:/var/www/html
- ./php/php.ini:/usr/local/etc/php/php.ini
- ./apache/apache2.conf:/etc/apache2/apache2.conf
- ./apache/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
# Uncomment the code if you want to see logs.
# - ./apache/log:/var/log/apache2/
ports:
- 80:80
networks:
- app
db:
container_name: db
environment:
MYSQL_DATABASE: user_system
MYSQL_ROOT_PASSWORD: root
TZ: Asia/Tokyo
volumes:
- ./mysql/my.cnf:/etc/mysql/my.cnf
- ./mysql/data:/var/lib/mysql
networks:
- app
phpmyadmin:
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOSTS=db
- PMA_USER=root
- PMA_PASSWORD=root
volumes:
- phpmyadmin:/sessions
ports:
- 8000:80
depends_on:
- db
networks:
- app
volumes:
phpmyadmin:
networks:
app:
driver: bridge