-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
78 lines (74 loc) · 2.47 KB
/
docker-compose.dev.yml
File metadata and controls
78 lines (74 loc) · 2.47 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
services:
traefik:
ports:
- "80:80"
- "443:443"
# - "8080:8080" # Uncomment to enable Traefik's dashboard
networks:
development:
aliases:
- laravel.dev.test
- nuxt.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}
stop_signal: SIGTERM
volumes:
- ./api:/var/www/html/
- ./.infrastructure:/var/www/html/.infrastructure
networks:
- development
depends_on:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.laravel-web.rule=Host(`laravel.dev.test`) || HostRegexp(`^.+\\.ngrok-free\\.app$$`)"
- "traefik.http.routers.laravel-web.tls=true"
- "traefik.http.routers.laravel-web.entrypoints=websecure"
- "traefik.http.services.laravel-web.loadbalancer.server.port=8443"
- "traefik.http.services.laravel-web.loadbalancer.server.scheme=https"
nuxt:
build:
context: ./frontend/
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
command: sh -c "[ ! -d './node_modules' ] && npm ci ; npm run dev"
volumes:
- ./frontend:/src
- /src/node_modules
- /src/.nuxt
networks:
- development
depends_on:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.nuxt.rule=Host(`nuxt.dev.test`)"
- "traefik.http.routers.nuxt.entrypoints=websecure"
- "traefik.http.routers.nuxt.tls=true"
- "traefik.http.services.nuxt.loadbalancer.server.port=3000"
- "traefik.http.services.nuxt.loadbalancer.server.scheme=http"
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"
networks:
development: