-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 2.48 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
networks:
lmt-dev:
driver: bridge
traefik-proxy-blumilk-local:
external: true
services:
app:
build:
context: ./environment/dev/app
dockerfile: Dockerfile
args:
- USER_ID=${DOCKER_HOST_USER_ID:-1000}
labels:
- "traefik.enable=true"
- "traefik.blumilk.environment=true"
# HTTP
- "traefik.http.routers.lmt-http-router.rule=Host(`lmt.blumilk.localhost`)"
- "traefik.http.routers.lmt-http-router.entrypoints=web"
# HTTP to HTTPS redirect
# - "traefik.http.routers.lmt-http-router.middlewares=https-redirect@file"
# HTTPS
- "traefik.http.routers.lmt-https-router.rule=Host(`lmt.blumilk.localhost`)"
- "traefik.http.routers.lmt-https-router.entrypoints=websecure"
- "traefik.http.routers.lmt-https-router.tls=true"
container_name: lmt-dev-app-container
working_dir: /application
volumes:
- ./environment/dev/app/nginx.conf:/etc/nginx/nginx.conf:ro
- ./environment/dev/app/php.ini:/usr/local/etc/php/conf.d/zzz-overrides.ini:ro
- ./environment/dev/app/php-fpm.conf:/usr/local/etc/php-fpm.d/zzz-overrides.conf:ro
- ./environment/dev/app/supervisord.conf:/etc/supervisor/custom-supervisord.conf:ro
- .:/application
ports:
- ${DOCKER_APP_HOST_PORT:-8051}:80
networks:
- lmt-dev
- traefik-proxy-blumilk-local
restart: unless-stopped
mailpit:
image: axllent/mailpit:v1.21.5@sha256:67143952f5f123692b922bced8ab2cea8947292576011a6b22d2cb2649dbcf78
container_name: lmt-dev-mailpit-container
ports:
- ${EXTERNAL_MAILPIT_DASHBOARD_PORT:-8052}:8025
- ${EXTERNAL_MAILPIT_SMTP_PORT:-8053}:1025
networks:
- lmt-dev
- traefik-proxy-blumilk-local
labels:
- "traefik.enable=true"
- "traefik.blumilk.environment=true"
# HTTP
- "traefik.http.routers.lmt-mailpit-http-router.rule=Host(`lmt-mailpit.blumilk.localhost`)"
- "traefik.http.routers.lmt-mailpit-http-router.entrypoints=web"
# HTTP to HTTPS redirect
# - "traefik.http.routers.lmt-mailpit-http-router.middlewares=https-redirect@file"
# HTTPS
- "traefik.http.routers.lmt-mailpit-https-router.rule=Host(`lmt-mailpit.blumilk.localhost`)"
- "traefik.http.routers.lmt-mailpit-https-router.entrypoints=websecure"
- "traefik.http.routers.lmt-mailpit-https-router.tls=true"
# LOADBALANCER MAILHOG PORT
- "traefik.http.services.lmt-mailpit.loadbalancer.server.port=8025"
restart: unless-stopped