-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
48 lines (45 loc) · 1.24 KB
/
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
services:
traefik:
image: "traefik:v2.10"
container_name: "traefik"
command:
- "--log.level=INFO"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:8081"
ports:
- "8081:8081"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- back
back:
build: .
env_file:
- .env
networks:
- back
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`localhost`) && PathPrefix(`/api/v1`)"
- "traefik.http.routers.backend.entrypoints=web"
- "traefik.http.services.backend.loadbalancer.server.port=8080"
front:
build: ./internal/web
environment:
- AUTH_ORIGIN=http://localhost:8081
- NEXTAUTH_URL=http://localhost:8081
- NUXT_API_BASE=http://back:8080
- NUXT_CLIENT_ID=afd22679cd8118504e36
- NUXT_CLIENT_SECRET=e32fe9cdc9e69367d1e5eb87880be8eb5e637190
networks:
- back
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`localhost`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
networks:
back: