This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
111 lines (108 loc) · 2.36 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
version: "3"
services:
chrome:
## This image may be more stable, but doesn't give any output when Chrome
## headless crashes
# image: justinribeiro/chrome-headless:latest
## This image is more up-to-date....but can be too bleeding edge, aka more
## likely to see bugs.
image: alpeware/chrome-headless-trunk
ports:
- "9222:9222"
cap_add:
- SYS_ADMIN
security_opt:
- seccomp:unconfined
selenium-chrome:
image: selenium/standalone-chrome-debug
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
- "5900:5900"
dns:
- 8.8.8.8
- 4.4.4.4
environment:
VNC_NO_PASSWORD: 1
SCREEN_WIDTH: 1200
SCREEN_HEIGHT: 900
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: LuwCDE97zppvQhzP
MYSQL_DATABASE: example
MYSQL_USER: example
MYSQL_PASSWORD: D9cACV8Pue3CvM93
ports:
- "3306:3306"
volumes:
- ./docker/mysql/config/my.cnf:/etc/mysql/my.cnf
- ./data/mysql:/var/lib/mysql
- ./data/mysql_import:/docker-entrypoint-initdb.d
php_fpm:
build: docker/php_fpm
image: example_php_fpm
depends_on:
- db
- redis
volumes:
- .:/var/www
php_fpm_debug:
build: docker/php_fpm_debug
depends_on:
- db
- redis
- php_fpm
volumes:
- .:/var/www
redis:
image: redis:4.0.6
ports:
- "6379:6379"
volumes:
- .:/var/www
command: ["redis-server", "/var/www/docker/redis/config/redis.conf"]
# varnish:
# build: docker/varnish
# command: ["/usr/local/bin/start_varnish.sh"]
# depends_on:
# - web_server
# environment:
# CACHE_SIZE: 128m
# ports:
# - "80:80"
# volumes:
# - ./config/localdev/varnish:/etc/varnish
# - ./:/var/app
nginx:
build: docker/nginx
depends_on:
- db
- redis
- php_fpm
- php_fpm_debug
volumes:
- .:/var/www
ports:
- "80:80"
- "8000:8000"
- "8001:8001"
supervisord:
build: docker/supervisord
depends_on:
- redis
ports:
- "8080:8080"
volumes:
- .:/var/www
test:
build: docker/test
volumes:
- .:/github/workspace
twilio:
build: docker/twilio
# https://rskuipers.com/entry/file-permissions-with-docker-on-linux
# fpm:
# For Linux users only (UID of your user)
# user: "1000"