This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
97 lines (89 loc) · 1.77 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
nginx:
build:
context: ./docker/nginx
dockerfile: nginx.docker
volumes:
- ./www:/var/www/bitrix
- ./storage/docker/logs/nginx/:/var/log/nginx/
ports:
- "80"
depends_on:
- php-fpm
- php-fpm-cli
networks:
bitrix:
ipv4_address: ${NGINX_INTERFACE}
memcached:
build:
context: ./docker/memcached
dockerfile: memcached.docker
volumes:
- ./storage/docker/memcached:/var/lib/memcached
ports:
- "11211"
depends_on:
- php-fpm
networks:
- bitrix
redis:
build:
context: ./docker/redis
dockerfile: redis.docker
volumes:
- ./storage/docker/redis:/data
ports:
- "6379"
networks:
- bitrix
php-fpm-cli:
build:
context: ./docker/php
dockerfile: php-fpm-cli.docker
volumes:
- ./www:/var/www/bitrix
depends_on:
- mysql
tty: true
networks:
- bitrix
php-fpm:
build:
context: ./docker/php
dockerfile: php-fpm.docker
volumes:
- ./www:/var/www/bitrix
- ./storage/docker/logs/php/:/var/log/php/
depends_on:
- mysql
networks:
- bitrix
mysql:
build:
context: ./docker/mysql
dockerfile: mysql.docker
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "33061:3306"
networks:
- bitrix
mailhog:
image: mailhog/mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
networks:
- bitrix
networks:
bitrix:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.100.0.0/24