-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
100 lines (100 loc) · 2.94 KB
/
docker-compose.dev.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
97
98
99
100
services:
traefik:
ports:
- "80:80"
- "443:443"
# - "8080:8080" # Uncomment to enable Traefik's dashboard
networks:
development:
aliases:
- roast.dev.test
- vite.dev.test
- mailpit.dev.test
- reverb.dev.test
volumes:
# Mount the Docker socket as read-only so Traefik can listen to events
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./.infrastructure/conf/traefik/dev/traefik.yml:/traefik.yml:ro
- ./.infrastructure/conf/traefik/dev/traefik-certs.yml:/traefik-certs.yml
- ./.infrastructure/conf/traefik/dev/certificates/:/certificates
php:
build:
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
dockerfile: Dockerfile.php
stop_signal: SIGTERM
volumes:
- .:/var/www/html/
networks:
- development
depends_on:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.roast-web.rule=Host(`roast.dev.test`) || HostRegexp(`^.+\\.ngrok-free\\.app$$`)"
- "traefik.http.routers.roast-web.tls=true"
- "traefik.http.routers.roast-web.entrypoints=websecure"
- "traefik.http.services.roast-web.loadbalancer.server.port=8443"
- "traefik.http.services.roast-web.loadbalancer.server.scheme=https"
node:
build:
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
dockerfile: Dockerfile.node
volumes:
- .:/usr/src/app/
working_dir: /usr/src/app/
networks:
- development
labels:
- "traefik.enable=true"
- "traefik.http.routers.vite.rule=HostRegexp(`vite.dev.test`)"
- "traefik.http.routers.vite.entrypoints=websecure"
- "traefik.http.routers.vite.tls=true"
- "traefik.http.services.vite.loadbalancer.server.port=5173"
- "traefik.http.services.vite.loadbalancer.server.scheme=https"
mailpit:
image: axllent/mailpit
networks:
- development
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailpit.rule=Host(`mailpit.dev.test`)"
- "traefik.http.routers.mailpit.entrypoints=websecure"
- "traefik.http.routers.mailpit.tls=true"
- "traefik.http.services.mailpit.loadbalancer.server.port=8025"
- "traefik.http.services.mailpit.loadbalancer.server.scheme=http"
schedule:
build:
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
dockerfile: Dockerfile.php
volumes:
- .:/var/www/html/
networks:
- development
depends_on:
php:
condition: service_started
queue:
build:
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
dockerfile: Dockerfile.php
volumes:
- .:/var/www/html/
networks:
- development
depends_on:
php:
condition: service_started
networks:
development: