-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (94 loc) · 3.67 KB
/
docker-compose.yml
File metadata and controls
98 lines (94 loc) · 3.67 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
networks:
lmt-local:
driver: bridge
traefik-proxy-blumilk-local-environment:
external: true
volumes:
lmt-postgres-data:
name: lmt-postgres-data
services:
app:
container_name: lmt-app-local
build:
context: .
dockerfile: environment/.docker/app/Dockerfile
target: local
args:
- INSTALL_XDEBUG=${DOCKER_INSTALL_XDEBUG:-false}
- USER_ID=${DOCKER_HOST_USER_ID:-1000}
labels:
- "traefik.enable=true"
- "traefik.blumilk.local.environment=true"
# HTTP
- "traefik.http.routers.lmt-http-router.rule=Host(`${APP_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.lmt-http-router.entrypoints=web"
- "traefik.http.routers.lmt-http-router.service=lmt-app"
# HTTPS
- "traefik.http.routers.lmt-https-router.rule=Host(`${APP_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.lmt-https-router.entrypoints=websecure"
- "traefik.http.routers.lmt-https-router.tls=true"
- "traefik.http.routers.lmt-https-router.service=lmt-app"
# APP LOADBALANCER
- "traefik.http.services.lmt-app.loadbalancer.server.port=80"
# VITE DEV SERVER
- "traefik.http.routers.lmt-vite-dev-server-https-router.rule=Host(`${VITE_DEV_SERVER_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.lmt-vite-dev-server-https-router.entrypoints=websecure"
- "traefik.http.routers.lmt-vite-dev-server-https-router.tls=true"
- "traefik.http.routers.lmt-vite-dev-server-https-router.service=lmt-vite-dev-server"
- "traefik.http.services.lmt-vite-dev-server.loadbalancer.server.port=5173"
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:-8051}:80
networks:
- lmt-local
- traefik-proxy-blumilk-local-environment
restart: unless-stopped
database:
build:
context: .
dockerfile: environment/.docker/postgres/Dockerfile
container_name: lmt-db-local
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
- PGDATA=/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready --dbname ${DB_DATABASE} --username ${DB_USERNAME}" ]
interval: 3s
timeout: 3s
retries: 5
ports:
- ${DOCKER_DATABASE_HOST_PORT:-5432}:5432
volumes:
- lmt-postgres-data:/var/lib/postgresql/data
networks:
- lmt-local
restart: unless-stopped
mailpit:
image: axllent/mailpit:v1.27.11@sha256:e22dce5b36f93c77082e204a3942fb6b283b7896e057458400a4c88344c3df68
container_name: lmt-mailpit-local
ports:
- ${EXTERNAL_MAILPIT_DASHBOARD_PORT:-8052}:8025
- ${EXTERNAL_MAILPIT_SMTP_PORT:-8053}:1025
networks:
- lmt-local
- traefik-proxy-blumilk-local-environment
labels:
- "traefik.enable=true"
- "traefik.blumilk.local.environment=true"
# HTTP
- "traefik.http.routers.lmt-mailpit-http-router.rule=Host(`${MAILPIT_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.lmt-mailpit-http-router.entrypoints=web"
# HTTPS
- "traefik.http.routers.lmt-mailpit-https-router.rule=Host(`${MAILPIT_DOCKER_HOST_NAME}`)"
- "traefik.http.routers.lmt-mailpit-https-router.entrypoints=websecure"
- "traefik.http.routers.lmt-mailpit-https-router.tls=true"
# LOADBALANCER MAILPIT PORT
- "traefik.http.services.lmt-mailpit.loadbalancer.server.port=8025"
restart: unless-stopped