This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (68 loc) · 1.97 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
version: '3.5'
services:
herstelkamer-database:
build: docker/mariadb
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: herstelkamer
MYSQL_USER: herstelkamer
MYSQL_PASSWORD: herstelkamer
volumes:
- database-herstelkamer:/var/lib/mysql
- ./data:/docker-entrypoint-initdb.d
ports:
- "8096:3306"
herstelkamer-webserver:
build: docker/nginx
depends_on:
- php-fpm
volumes:
- ./:/opt/project
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-herstelkamer"
- "traefik.http.routers.herstelkamer.rule=Host(`herstelkamer.localhost`)"
- "traefik.http.routers.herstelkamer.entrypoints=web"
networks:
- traefik-herstelkamer
- default
php-cli:
build: docker/php-cli
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
COMPOSER_HOME: "/opt/project/var/cache/.composer"
PHP_IDE_CONFIG: "serverName=localhost"
COMPOSER_MEMORY_LIMIT: "-1"
depends_on:
- "herstelkamer-database"
volumes:
- ./:/opt/project
- ~/.ssh/id_rsa:/root/.ssh/id_rsa
- ~/.ssh/known_hosts:/root/.ssh/known_hosts
php-fpm:
build: docker/php-fpm
environment:
COMPOSER_HOME: "/opt/project/var/cache/.composer"
PHP_IDE_CONFIG: "serverName=localhost"
depends_on:
- "herstelkamer-database"
volumes:
- ./:/opt/project
herstelkamer-mailhog:
build: docker/mailhog
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-herstelkamer"
- "traefik.http.routers.herstelkamer-mailhog.rule=Host(`mailhog.herstelkamer.localhost`)"
- "traefik.http.routers.herstelkamer-mailhog.entrypoints=web"
- "traefik.http.services.herstelkamer-mailhog.loadbalancer.server.port=8025"
networks:
- traefik-herstelkamer
- default
volumes:
database-herstelkamer:
networks:
traefik-herstelkamer:
external: true
name: traefik-herstelkamer