forked from momenTUM-research-platform/momenTUM-json-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: unless-stopped
api:
build: ./api
volumes:
- ./api:/usr/src/api
restart: unless-stopped
ports:
- 8000:8000
networks:
- caddy
labels:
caddy: make.momentumresearch.eu tuspl22-momentum.srv.mwn.de
caddy.handle_path: /api/*
caddy.handle_path.0_rewrite: "* /api{uri}"
caddy.handle_path.1_reverse_proxy: "{{upstreams 8000}}"
web:
restart: unless-stopped
build: ./frontend
networks:
- caddy
ports:
- 3000:3000
labels:
caddy: make.momentumresearch.eu tuspl22-momentum.srv.mwn.de
caddy.handle_path: /*
caddy.handle_path.0_reverse_proxy: "{{upstreams 3000}}"
volumes:
caddy_data:
networks:
caddy:
external: true