-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 1.74 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
version: '3.7'
services:
mysql:
container_name: mysql
image: mysql
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: cmsworks_db
MYSQL_USER: developer
MYSQL_PASSWORD: secret
volumes:
- ./docker/mysql/data:/var/lib/mysql
networks:
- internal
php:
container_name: php-fpm
build: ./docker/php-fpm
volumes:
- ./www:/var/www:cached
- ./docker/logs/cmsworks:/var/www/cmsworks/var/log:cached
environment:
XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1 remote_autostart=1 remote_handler=dbgp idekey=PHPSTORM"
PHP_IDE_CONFIG: "serverName=Docker"
depends_on:
- mysql
networks:
- internal
nginx:
container_name: nginx
build: ./docker/nginx
ports:
- "80:80"
depends_on:
- php
volumes:
- ./docker/logs/nginx:/var/log/nginx:cached
- ./www:/var/www:cached
networks:
- internal
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8000:80
environment:
- PMA_ARBITRARY=1
- VIRTUAL_HOST=phpmyadmin.local
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=root
depends_on:
- mysql
networks:
- internal
networks:
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.220.0/28