forked from ssc-spc-cloud-nuage/docker-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (113 loc) · 2.71 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Docker Compose (v2)
version: "2"
services:
cli_scripts:
build:
context: docker/images/ci
args:
- BASE_IMAGE=${BASE_IMAGE}
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=hub,${NO_PROXY}
- no_proxy=hub,${NO_PROXY}
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=${NO_PROXY}
- no_proxy=${NO_PROXY}
volumes:
- ./:/var/www/html
- files_private_data:/var/www/files_private
container_name: ${DOCKER_NAME}_web_scripts
web:
build:
context: docker/images/dev
args:
- BASE_IMAGE=${BASE_IMAGE}
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=${NO_PROXY}
- no_proxy=${NO_PROXY}
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
- NO_PROXY=${NO_PROXY}
- no_proxy=${NO_PROXY}
volumes:
- .:/var/www
depends_on:
- db
ports:
- "9000"
container_name: ${DOCKER_NAME}_web
cli:
build:
context: docker/images/cli
args:
- BASE_IMAGE=${BASE_IMAGE}
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_proxy=${HTTP_PROXY}
- NO_PROXY=hub,${NO_PROXY}
- no_proxy=hub,${NO_PROXY}
volumes:
- ./:/var/www
depends_on:
- db
- web
container_name: ${DOCKER_NAME}_cli
db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=${DB_NAME}
volumes:
- db_data:/var/lib/mysql
- files_private_data:/var/www/files_private
ports:
- "3308:3306"
container_name: ${DOCKER_NAME}_db
command: mysqld --max_allowed_packet=32M
nginx:
build:
context: docker/images/nginx
args:
- BASE_IMAGE=${BASE_IMAGE}
volumes:
- ./html:/var/www/html
- ./docker/conf/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- '80:80'
depends_on:
- web
restart: always
container_name: ${DOCKER_NAME}_nginx
hub:
image: drupalcomposer/selenium:hub
ports:
- "4444:4444"
depends_on:
- db
- web
container_name: ${DOCKER_NAME}_hub
firefox:
image: drupalcomposer/selenium:node-firefox
depends_on:
- db
- web
- hub
container_name: ${DOCKER_NAME}_firefox
volumes:
db_data:
files_data:
files_private_data: