-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (91 loc) · 3.76 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
networks:
website-dev:
driver: bridge
traefik-proxy-blumilk-local:
external: true
volumes:
website-postgres-data:
name: website-postgres-data
website-redis-data:
name: website-redis-data
services:
app:
build:
context: ./environment/dev/app
dockerfile: Dockerfile
args:
- INSTALL_XDEBUG=${DOCKER_INSTALL_XDEBUG:-true}
- USER_ID=${DOCKER_HOST_USER_ID:-1000}
labels:
- "traefik.enable=true"
- "traefik.blumilk.environment=true"
- "traefik.http.routers.website-http-router.rule=Host(`website.blumilk.localhost`)"
- "traefik.http.routers.website-http-router.entrypoints=web"
- "traefik.http.routers.website-https-router.rule=Host(`website.blumilk.localhost`)"
- "traefik.http.routers.website-https-router.entrypoints=websecure"
- "traefik.http.routers.website-https-router.tls=true"
container_name: website-app-dev
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:-63851}:80
networks:
- website-dev
- traefik-proxy-blumilk-local
restart: unless-stopped
depends_on:
database:
condition: service_healthy
database:
image: postgres:16.3-alpine3.18@sha256:64e18e8fb3e9c9aac89ac590c5dd8306b862478404f76cd9b5f7720d012b4c47
container_name: website-db-dev
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:-63853}:5432
volumes:
- website-postgres-data:/var/lib/postgresql/data
networks:
- website-dev
restart: unless-stopped
mailpit:
image: axllent/mailpit:v1.21.5@sha256:67143952f5f123692b922bced8ab2cea8947292576011a6b22d2cb2649dbcf78
container_name: website-mailpit-dev
labels:
- "traefik.enable=true"
- "traefik.blumilk.environment=true"
- "traefik.http.routers.website-mailpit-http-router.rule=Host(`website-mailpit.blumilk.localhost`)"
- "traefik.http.routers.website-mailpit-http-router.entrypoints=web"
- "traefik.http.routers.website-mailpit-https-router.rule=Host(`website-mailpit.blumilk.localhost`)"
- "traefik.http.routers.website-mailpit-https-router.entrypoints=websecure"
- "traefik.http.routers.website-mailpit-https-router.tls=true"
- "traefik.http.services.website-mailpit.loadbalancer.server.port=8025"
networks:
- website-dev
- traefik-proxy-blumilk-local
ports:
- ${DOCKER_MAILPIT_DASHBOARD_HOST_PORT:-34622}:8025
restart: unless-stopped
redis:
image: redis:7.2.3-alpine3.18@sha256:3ce533b2b057f74b235d1d8697ae08b1b6ff0a5e16827ea6a377b6365693c7ed
container_name: website-redis-dev
ports:
- ${DOCKER_REDIS_HOST_PORT:-63852}:6379
volumes:
- website-redis-data:/data
networks:
- website-dev
restart: unless-stopped