-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·155 lines (142 loc) · 3.44 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: '3.3'
services:
reverse-proxy:
image: traefik
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
api:
image: nginx:1.13.3-alpine
restart: always
depends_on:
- php
volumes:
- ./conf/nginx/api.conf:/etc/nginx/conf.d/api.conf:rw
- ./logs:/var/log/nginx
labels:
- "traefik.frontend.rule=Host:${VIRTUAL_HOST_API}"
bot:
image: nginx:1.13.3-alpine
restart: always
depends_on:
- php
volumes:
- ./conf/nginx/bot.conf:/etc/nginx/conf.d/bot.conf:rw
- ./logs:/var/log/nginx
labels:
- "traefik.frontend.rule=Host:${VIRTUAL_HOST_BOT}"
www:
image: nginx:1.13.3-alpine
restart: always
hostname: "www"
depends_on:
- php
volumes:
- ./conf/nginx/www.conf:/etc/nginx/conf.d/www.conf:rw
- ./logs:/var/log/nginx
labels:
- "traefik.frontend.rule=Host:${VIRTUAL_HOST_WWW}"
php:
image: lcidral/php:7.2.9-fpm-xdebug-alpine
restart: always
depends_on:
- reverse-proxy
volumes:
- ~/.composer/cache:/root/.composer/cache
- ./:/var/www/html
- ./public/images:/var/www/html/public/images
- ./conf/php/7.2/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./conf/php/7.2/docker-php-ext-sendmail.ini:/usr/local/etc/php/conf.d/docker-php-ext-sendmail.ini
- ./conf/php/7.2/ssmtp.conf:/etc/ssmtp/ssmtp.conf
env_file:
- .env
mariadb:
image: mariadb:10.1.26
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- mariadb_data:/var/lib/mysql
environment:
VIRTUAL_HOST: "${DB_HOST}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
mail:
image: lcidral/mailcatcher.dev:latest
ports:
- "1025:1025"
- "1080:1080"
selenium-hub:
image: selenium/hub:3.12.0-boron
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome-debug:3.12.0-boron
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
ports:
- 5900:5900
volumes:
- /dev/shm:/dev/shm
firefox:
image: selenium/node-firefox-debug:3.12.0-boron
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
ports:
- 5901:5900
volumes:
- /dev/shm:/dev/shm
mongo:
image: mongo:3.2
hostname: "mongo"
volumes:
- mongodb_data:/data/db
- mongodb_dump:/dump
command: mongod --smallfiles --oplogSize 128
logging:
options:
max-size: 10m
max-file: '3'
rocketchat:
image: rocket.chat:latest
hostname: "rocketchat"
depends_on:
- mongo
volumes:
- rocketchat_uploads:/app/uploads
environment:
- PORT=3000
- "ROOT_URL=http://${ROCKETCHAT_URL}:3000"
- MONGO_URL=mongodb://mongo:27017/rocketchat
links:
- mongo:mongo
labels:
- "traefik.backend=rocketchat"
- "traefik.frontend.rule=Host:${VIRTUAL_HOST_ROCKETCHAT}"
ports:
- 3000:3000
portainer:
image: portainer/portainer
ports:
- "9000:9000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data:
rocketchat_uploads:
mongodb_data:
mongodb_dump:
mariadb_data: