-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (33 loc) · 1.02 KB
/
docker-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
version: '2'
services:
proxy:
image: traefik:v2.3.3
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yml:/traefik.yml:ro"
container_name: traefik
backend:
build: backend
image: cercet-backend
volumes:
- "./config.yaml:/app/config.yaml"
labels:
- "traefik.docker.network=default"
- "traefik.http.routers.backend.rule=Host(`cercet.paul2708.de`) && PathPrefix(`/api`)"
- "traefik.http.routers.backend.middlewares=backend-stripprefix"
- "traefik.http.middlewares.backend-stripprefix.stripprefix.prefixes=/api"
- "traefik.http.routers.whoami.entrypoints=web"
- "traefik.enable=true"
- "traefik.port=42069"
frontend:
build: frontend
image: cercet-frontend
labels:
- "traefik.docker.network=default"
- "traefik.http.routers.nginx.entrypoints=web"
- "traefik.http.routers.nginx.rule=Host(`cercet.paul2708.de`)"
- "traefik.enable=true"
- "traefik.port=80"