-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
95 lines (91 loc) · 4.12 KB
/
docker-compose.yaml
File metadata and controls
95 lines (91 loc) · 4.12 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
networks:
hops-web-dev:
driver: bridge
traefik-proxy-blumilk-local-environment:
external: true
volumes:
hops-web-redis-data:
name: hops-web-redis-data
hops-web-mailpit-data:
name: hops-web-mailpit-data
services:
app:
build:
context: .
dockerfile: environment/.docker/app/Dockerfile
target: local
args:
- INSTALL_XDEBUG=${DOCKER_INSTALL_XDEBUG:-true}
- USER_ID=${DOCKER_HOST_USER_ID:-1000}
labels:
- "traefik.enable=true"
- "traefik.blumilk.local.environment=true"
# HTTP
- "traefik.http.routers.hops-web-http-router.rule=Host(`${APP_DOMAIN}`)"
- "traefik.http.routers.hops-web-http-router.entrypoints=web"
- "traefik.http.routers.hops-web-http-router.service=hops-web"
# HTTP to HTTPS redirect
# - "traefik.http.routers.hops-web-http-router.middlewares=https-redirect@file"
# HTTPS
- "traefik.http.routers.hops-web-https-router.rule=Host(`${APP_DOMAIN}`)"
- "traefik.http.routers.hops-web-https-router.entrypoints=websecure"
- "traefik.http.routers.hops-web-https-router.tls=true"
- "traefik.http.routers.hops-web-https-router.service=hops-web"
# APP LOADBALANCER
- "traefik.http.services.hops-web.loadbalancer.server.port=80"
# VITE DEV SERVER
- "traefik.http.routers.hops-web-vite-dev-server-https-router.rule=Host(`${VITE_DEV_SERVER_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.hops-web-vite-dev-server-https-router.entrypoints=websecure"
- "traefik.http.routers.hops-web-vite-dev-server-https-router.tls=true"
- "traefik.http.routers.hops-web-vite-dev-server-https-router.service=hops-web-vite-dev-server"
- "traefik.http.services.hops-web-vite-dev-server.loadbalancer.server.port=5173"
container_name: hops-web-app-dev
working_dir: /application
volumes:
- ./environment/local/app/php.ini:/usr/local/etc/php/conf.d/zzz-overrides.ini:ro
- ./environment/local/app/php-fpm.conf:/usr/local/etc/php-fpm.d/zzz-overrides.conf:ro
- ./environment/local/app/supervisord.conf:/etc/supervisor/custom-supervisord.conf:ro
- .:/application
ports:
- ${DOCKER_APP_HOST_PORT:-63851}:80
networks:
- hops-web-dev
- traefik-proxy-blumilk-local-environment
restart: no
mailpit:
image: axllent/mailpit:v1.29.6@sha256:0b5c5f7ffd3c93474baa7fd3869c1462e5a3d03256ed0933dfc0e7d81d794036
container_name: hops-web-mailpit-dev
labels:
- "traefik.enable=true"
- "traefik.blumilk.local.environment=true"
# HTTP
- "traefik.http.routers.hops-web-mailpit-http-router.rule=Host(`hops-web-mailpit.blumilk.local.env`)"
- "traefik.http.routers.hops-web-mailpit-http-router.entrypoints=web"
# HTTP to HTTPS redirect
# - "traefik.http.routers.hops-web-mailpit-http-router.middlewares=https-redirect@file"
# HTTPS
- "traefik.http.routers.hops-web-mailpit-https-router.rule=Host(`hops-web-mailpit.blumilk.local.env`)"
- "traefik.http.routers.hops-web-mailpit-https-router.entrypoints=websecure"
- "traefik.http.routers.hops-web-mailpit-https-router.tls=true"
# LOADBALANCER MAILPIT PORT
- "traefik.http.services.hops-web-mailpit.loadbalancer.server.port=8025"
networks:
- hops-web-dev
- traefik-proxy-blumilk-local-environment
ports:
- ${DOCKER_MAILPIT_DASHBOARD_HOST_PORT:-63854}:8025
restart: no
environment:
- MP_DATABASE=/data/mailpit.db
volumes:
- hops-web-mailpit-data:/data
redis:
image: redis:8.6.2-trixie@sha256:1f073813b641755b70b0200da64131bbeeb4ec5b633ca67772229b49820caafa
container_name: hops-web-redis-dev
ports:
- ${DOCKER_REDIS_HOST_PORT:-63852}:6379
volumes:
- hops-web-redis-data:/data
networks:
- hops-web-dev
restart: no