forked from serversideup/financial-freedom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
78 lines (74 loc) · 2.37 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
services:
traefik:
ports:
- "80:80"
- "443:443"
- 5173:5173
networks:
development:
aliases:
- financialfreedom.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:
context: .
dockerfile: Dockerfile.php
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
environment:
SSL_MODE: "full"
volumes:
- .:/var/www/html/
networks:
- development
depends_on:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.financialfreedom.rule=HostRegexp(`financialfreedom.dev.test`)"
- "traefik.http.routers.financialfreedom.entrypoints=websecure"
- "traefik.http.routers.financialfreedom.tls=true"
- "traefik.http.services.financialfreedom.loadbalancer.server.port=8443"
- "traefik.http.services.financialfreedom.loadbalancer.server.scheme=https"
node:
build:
context: .
dockerfile: Dockerfile.node
args:
USER_ID: ${SPIN_USER_ID}
networks:
- development
environment:
VITE_HOST: "vite.dev.test"
volumes:
- .:/usr/src/app/:cached
working_dir: /usr/src/app/
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"
depends_on:
- traefik
networks:
development: