-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
73 lines (67 loc) · 2.11 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
services:
proxy:
image: nginx:stable
links:
- app
ports:
- "8082:8080"
volumes:
- ./.docker/proxy/nginx.conf.template:/etc/nginx/conf.d/nginx.conf.template:ro
- ./.docker/proxy/includes:/etc/nginx/conf.d/includes:ro
- ./web:/usr/share/nginx/www/spenden.wikimedia.de/current/web:ro
- ./vendor/wmde/fundraising-frontend-content:/usr/share/nginx/www/fundraising-frontend-content:ro
environment:
- NGINX_HOST=spenden.wikimedia.de
- NGINX_PORT=8080
- PHP_FPM_HOST=app
command: /bin/bash -c "envsubst '$$NGINX_HOST $$NGINX_PORT $$PHP_FPM_HOST' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
app:
image: "registry.gitlab.com/fun-tech/fundraising-frontend-docker:latest"
expose:
- "9000"
volumes:
- .docker/app/msmtprc:/etc/msmtprc:ro
- .docker/app/mailhog.ini:/usr/local/etc/php/conf.d/mailhog.ini
- .:/usr/share/nginx/www/spenden.wikimedia.de/current
working_dir: /usr/share/nginx/www/spenden.wikimedia.de/current
environment:
- APP_ENV
links:
- database
- mailhog
database:
image: mariadb:10.6
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=yes
- MARIADB_USER=fundraising
- MARIADB_PASSWORD=INSECURE PASSWORD
- MARIADB_DATABASE=fundraising
ports:
- '3307:3306'
expose:
- "3306"
volumes:
- ./.docker/database:/docker-entrypoint-initdb.d
- db-storage:/var/lib/mysql
networks:
- default
- frontend-proxy
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
expose:
- "1025"
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- database
command: database:3306
volumes:
db-storage:
networks:
frontend-proxy:
# uncomment this as soon as we can use version 3.5 (Docker 17.12.0+) on Travis CI,
# to make linking easier with a defined name instead of using the directory name this repo is living in
# name: fundraising_network