-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yaml
66 lines (57 loc) · 1.56 KB
/
docker-compose.dev.yaml
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
version: '3'
services:
traefik:
image: traefik:v3.1
restart: unless-stopped
command:
- --api.dashboard=true
- --accesslog=true
- --log.level=DEBUG
- --providers.file=true
- --providers.file.directory=/traefik/config
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entryPoint.to=websecure
- --entrypoints.websecure.address=:443
ports:
- "81:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./traefik:/traefik"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN:-cyclecounter.localhost}`)"
- "traefik.docker.network=wmcycledata_traefik_web"
environment:
DOMAIN: ${DOMAIN:-cyclecounter.localhost}
networks:
- traefik_web
web:
build:
context: ./web
target: dev
environment:
REACT_APP_HOST: ${DOMAIN:-cyclecounter.localhost}
# labels:
# - "traefik.http.routers.web.rule=Host(`${DOMAIN:-badlyparked.localhost}`)"
volumes:
- "./web/src:/app/src"
- "./web/public:/app/public"
api:
build:
context: ./api
target: dev
labels:
- "traefik.docker.network=wmcycledata_traefik_web"
volumes:
- "./api:/app"
networks:
traefik_web:
external:
false
internal_network:
internal: true