-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
76 lines (70 loc) · 2.3 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
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
version: "3.0"
services:
cake_mongodb:
image: mongo
container_name: cake_mongodb
env_file:
- ./server/config/config.env
environment:
- PUID=1000
- PGID=1000
volumes:
- ./database:/data/db
ports:
- 27017:27017
networks:
- globales_kuchennetz
cake_backend:
build: ./server/.
container_name: cake_backend
volumes:
- ./server:/app
depends_on:
- cake_mongodb
environment:
- PUID=1000
- PGID=1000
ports:
- 3000:3000
networks:
- globales_kuchennetz
- web
labels:
- "traefik.enable=true"
# http
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
- "traefik.http.routers.kuchen-api-http.rule=Host(`api.kuchen.jetzt`)"
- "traefik.http.routers.kuchen-api.entrypoints=web"
- "traefik.http.routers.kuchen-api-http.middlewares=https_redirect"
# https
- "traefik.http.routers.kuchen-api.rule=Host(`api.kuchen.jetzt`)"
- "traefik.http.routers.kuchen-api.entrypoints=websecure"
- "traefik.http.routers.kuchen-api.tls.certresolver=myresolver"
cake_frontend:
build: ./client/.
container_name: cake_client
depends_on:
- cake_backend
environment:
- PUID=1000
- PGID=1000
ports:
- 8080:8080
networks:
- globales_kuchennetz
- web
labels:
- "traefik.enable=true"
# http
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
- "traefik.http.routers.kuchen-http.rule=Host(`kuchen.jetzt`)"
- "traefik.http.routers.kuchen.entrypoints=web"
- "traefik.http.routers.kuchen-http.middlewares=https_redirect"
# https
- "traefik.http.routers.kuchen.rule=Host(`kuchen.jetzt`)"
- "traefik.http.routers.kuchen.entrypoints=websecure"
- "traefik.http.routers.kuchen.tls.certresolver=myresolver"
networks:
web:
external: true
globales_kuchennetz: