forked from ProfessorFrancken/ProfessorFrancken
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
204 lines (188 loc) · 4.45 KB
/
docker-compose.yaml
File metadata and controls
204 lines (188 loc) · 4.45 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
version: '3'
volumes:
mysql:
driver: "local"
redis:
driver: "local"
services:
php-base:
build:
dockerfile: Dockerfile-base
context: ./docker/php
image: francken/php-base:v8.2
npm:
image: node:14.5
volumes:
- ./:/var/www/francken
- ./docker/volumes/npm/:/var/www/.npm
- ./docker/volumes/config/:/var/www/.config
working_dir: /var/www/francken
php:
image: francken/php:v8.2
build:
dockerfile: Dockerfile
context: ./docker/php
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
user: $USER_ID
env_file:
- .docker.env
- .env
links:
- mysql
- legacy-db
- redis
- mailhog
working_dir: /var/www/francken
volumes:
- ./:/var/www/francken
- ./docker/volumes/config/:/var/www/.config
scheduler:
image: francken/scheduler:v8.2
build:
dockerfile: Dockerfile-scheduler
context: ./docker/php
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
user: $USER_ID
env_file:
- .docker.env
- .env
links:
- legacy-db
- redis
working_dir: /var/www/francken
volumes:
- ./:/var/www/francken
restart: always
queue-worker:
image: francken/queue:v8.2
build:
dockerfile: Dockerfile-queue
context: ./docker/php
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
user: $USER_ID
env_file:
- .docker.env
- .env
links:
- legacy-db
- redis
- mailhog
working_dir: /var/www/francken
volumes:
- ./:/var/www/francken
restart: always
command: php artisan horizon
nginx:
build:
dockerfile: Dockerfile
context: ./docker/nginx
image: francken/v2-nginx
links:
- php
volumes:
- ./docker/nginx/francken.conf:/etc/nginx/conf.d/francken.conf
- ./:/var/www/francken
restart: always
depends_on:
- proxy
labels:
- "traefik.enable=true"
- "traefik.backend=francken-web"
- "traefik.frontend.rule=Host:francken.nl.localhost"
- "traefik.port=80"
networks:
default:
aliases:
- francken.nl.localhost
imaginary:
image: h2non/imaginary
restart: always
command: -enable-url-source -mount /mnt/data
volumes:
- ./docker/volumes/fly-images/:/mnt/data
labels:
- "traefik.enable=true"
- "traefik.backend=francken-images-web"
- "traefik.frontend.rule=Host:francken-images.nl.localhost"
- "traefik.port=9000"
mailhog:
image: mailhog/mailhog
labels:
- "traefik.enable=true"
- "traefik.backend=francken-email-web"
- "traefik.frontend.rule=Host:francken-mail.nl.localhost"
- "traefik.port=8025"
adminer:
image: adminer
links:
- mysql
- legacy-db
labels:
- "traefik.enable=true"
- "traefik.backend=francken-adminer-web"
- "traefik.frontend.rule=Host:adminer.nl.localhost"
- "traefik.port=8080"
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: francken
MYSQL_PASSWORD: leden
MYSQL_DATABASE: francken
volumes:
- mysql:/var/lib/mysql
legacy-db:
image: mysql:5.7
volumes:
- ./database/francken-db.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
- MYSQL_USER=francken
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=francken
restart: always
redis:
image: redis:4-alpine
ports:
- 16379:6379
volumes:
- redis:/data
php-coverage:
image: francken/php-testing:v8.2
build:
dockerfile: Dockerfile-testing
context: ./docker/php
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
user: $USER_ID
env_file:
- .docker.env
- .env
links:
- mysql
- legacy-db
- redis
- mailhog
working_dir: /var/www/francken
volumes:
- ./:/var/www/francken
- ./docker/volumes/config/:/var/www/.config
proxy:
image: traefik:v1.7.24
command: --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --docker.exposedbydefault=false
restart: always
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/traefik/traefik.toml:/traefik.toml
- ./certs/:/certs/