-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (72 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
80 lines (72 loc) · 1.45 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
db:
container_name: dev-db
image: mysql:8.3.0
command: --default-authentication-plugin=mysql_native_password
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: example
networks:
- internal
ports:
- 3306:3306
adminer:
container_name: dev-adminer
image: adminer
networks:
- internal
ports:
- 8080:8080
php:
container_name: dev-php
build:
context: ./
dockerfile: .docker/php.Dockerfile
volumes:
- ./:/var/www/
- ./public:/var/www/html
- ./.docker/php:/usr/local/etc/php/custom.d
networks:
- internal
links:
- db
- memcached
environment:
PHP_INI_SCAN_DIR: "/usr/local/etc/php/custom.d:/usr/local/etc/php/conf.d"
nginx:
container_name: dev-nginx
image: nginx:1.13
ports:
- 80:80
- 8044:8044
volumes:
- ./:/var/www/
- ./public:/var/www/html
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- php
networks:
- internal
memcached:
container_name: dev-memcached
image: memcached:latest
networks:
- internal
mailhog:
container_name: dev-mailhog
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- internal
volumes:
mysql:
networks:
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.222.0/28