forked from bitrixdock/bitrixdock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
98 lines (89 loc) · 2.29 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
98
version: '3.9'
services:
php:
build: ./${PHP_VERSION}
volumes_from:
- source
links:
- db
- memcached
networks:
- bitrix
restart: unless-stopped
web_server:
build: ./${WEB_SERVER_TYPE}
depends_on:
- source
volumes_from:
- source
ports:
- '${INTERFACE}:80:80'
- '${INTERFACE}:443:443'
links:
- php
networks:
- bitrix
restart: unless-stopped
db:
build: ./${DB_SERVER_TYPE}
platform: linux/amd64
volumes:
- ./${DB_SERVER_TYPE}/init:/docker-entrypoint-initdb.d
volumes_from:
- source
ports:
- '${INTERFACE}:3306:3306'
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
command: mysqld --user=root --sql-mode=""
networks:
- bitrix
restart: unless-stopped
memcached:
image: memcached:1.6.12-alpine
volumes_from:
- source
ports:
- '${INTERFACE}:11211:11211'
networks:
- bitrix
restart: unless-stopped
adminer:
image: dockette/adminer:full
links:
- db:db
ports:
- '${INTERFACE}:8080:80'
environment:
UPLOAD: 1024M # upload_max_filesize, post_max_size
networks:
- bitrix
source:
image: alpine:latest
volumes:
- ./logs/${WEB_SERVER_TYPE}:/var/log/${WEB_SERVER_TYPE}
- ./logs/php:/var/log/php
- ./logs/db:/var/log/mysql
- ./logs/memcached:/var/log/memcached
- db:/var/lib/mysql
- cache:/var/lib/memcached
- ./www/html:/var/www/html
- ${SITE_PATH}:/var/www/bitrix
- /etc/localtime:/etc/localtime/:ro
networks:
- bitrix
volumes:
db:
driver: local
cache:
driver: local
networks:
bitrix:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.100.0.0/24