-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
81 lines (79 loc) · 2.64 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2'
services:
db:
image: mysql
volumes:
- "./.data/var/lib/mysql:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
network_bridge:
ipv4_address: 172.18.0.4
php:
build:
context: build/php7-fpm
args:
TIMEZONE: ${TIMEZONE}
ports:
- "9000:9000"
# To add a web project, follow these four steps:
# 1. Add project folders to volume here.
# 2. Create a .conf file at Docker/nginx folder.
# 3. ADD this .conf file to Docker/nginx/Dockerfile and RUN it in another line.
# 4. Add new domain to host machine's etc/hosts file pointing to 127.0.0.1
volumes:
- ./build/php7-fpm/cfg/custom.ini:/usr/local/etc/php/conf.d/custom.ini:cached
- ${SYMFONY_APP_PATH}:/var/www/symfony:rw
- /Users/yahyaerturan/Code/ClinicManagement:/var/www/ClinicManagement:rw
- /Users/yahyaerturan/Code/clinicSMF4:/var/www/clinicSMF4:rw
- /Users/yahyaerturan/Code/symfony4tutorial:/var/www/symfony4tutorial:rw
- /Users/yahyaerturan/CodeOut/doktor-bul:/var/www/doktor-bul:rw
- /Users/yahyaerturan/Code/cpanel_api:/var/www/cpanel_api:cached
- ./.data/var/log/symfony:/var/www/symfony/var/log:rw
networks:
network_bridge:
ipv4_address: 172.18.0.3
nginx:
build: build/nginx
ports:
- 80:80
volumes_from:
- php
volumes:
- ./.data/var/log/nginx/:/var/log/nginx:cached
networks:
network_bridge:
ipv4_address: 172.18.0.2
elk:
image: willdurand/elk
ports:
- 81:80
volumes:
- ./build/elk/logstash:/etc/logstash:cached
- ./build/elk/logstash/patterns:/opt/logstash/patterns:cached
volumes_from:
- php
- nginx
networks:
network_bridge:
ipv4_address: 172.18.0.5
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
networks:
network_bridge:
ipv4_address: 172.18.0.6
networks:
network_bridge:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.18.0.0/24
gateway: 172.18.0.1