forked from drupalwxt/site-wxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.sync.yml
115 lines (106 loc) · 2.4 KB
/
docker-compose.sync.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
# Docker Compose (v2)
version: "2"
services:
cli_scripts:
build:
context: docker/images/ci
args:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
environment:
- DRUPAL_SETTINGS=development
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
volumes:
- root-sync:/var/www:nocopy
- ./files_private/:/db/
depends_on:
- db
- web
container_name: sitewxt_cli_scripts
web:
build:
context: docker/images/dev
args:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
environment:
- DRUPAL_SETTINGS=development
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTP_PROXY}
volumes:
- root-sync:/var/www:nocopy
- ./files_private/:/db/
depends_on:
- db
ports:
- "9000"
container_name: sitewxt_web
cli:
build:
context: docker/images/cli
environment:
- DRUPAL_SETTINGS=development
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTP_PROXY}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_proxy=${HTTP_PROXY}
volumes:
- root-sync:/var/www:nocopy
- ./files_private/:/db/
depends_on:
- db
- web
container_name: sitewxt_cli
db:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wxt
volumes:
- db_data:/var/lib/mysql
- ./files_private/:/db/
ports:
- "3308:3306"
container_name: sitewxt_db
command: mysqld --max_allowed_packet=32M
nginx:
image: nginx:alpine
volumes:
- docroot-sync:/var/www/html:nocopy
- ./docker/conf/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- '80:80'
depends_on:
- web
restart: always
container_name: sitewxt_nginx
hub:
image: drupalcomposer/selenium:hub
ports:
- "4444:4444"
depends_on:
- db
- web
container_name: sitewxt_hub
firefox:
image: drupalcomposer/selenium:node-firefox
depends_on:
- db
- web
- hub
container_name: sitewxt_firefox
volumes:
root-sync:
external: true
docroot-sync:
external: true
db_data: