This repository has been archived by the owner on Dec 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml-template
92 lines (84 loc) · 2.12 KB
/
docker-compose.yml-template
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.3"
services:
nginx:
image: jwilder/nginx-proxy
networks:
- internal
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
# - "./certs:/etc/nginx/certs"
ports:
- "80:80"
# - "443:443"
# traefik:
# image: traefik
# command:
# - "--accessLog=true"
# - "--entrypoints.web.address=:80"
# - "--api.dashboard=true"
# - "--providers.docker.endpoint=unix:///var/run/docker.sock"
# - "--providers.docker.exposedByDefault=false"
# - "--providers.docker.network=internal"
# networks:
# - internal
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# ports:
# - "80:80"
# deploy:
# placement:
# constraints:
# - "node.role==manager"
mongodb:
image: mongo
networks:
- internal
volumes:
- "./mongodb:/data/db"
# ports:
# - "27017:27017"
registry:
image: verdaccio/verdaccio
networks:
- internal
volumes:
- "./registry:/verdaccio/conf"
ports:
- "4873:4873"
catalogue:
image: catalogue
build: "./catalogue"
networks:
- internal
depends_on:
- registry
environment:
- "VIRTUAL_HOST=catalogue.PLACE_HOLDER"
- "ROOT_DOMAIN=PLACE_HOLDER"
labels:
- "traefik.enable=true"
- "traefik.http.routers.manager.rule=HOST(`catalogue.PLACE_HOLDER`)"
- "traefik.http.services.manager.loadbalancer.server.port=80"
- "traefik.http.routers.manager.entrypoints=web"
manager:
image: manager
build: "./manager"
depends_on:
- mongodb
networks:
- internal
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
environment:
- "VIRTUAL_HOST=manager.PLACE_HOLDER"
- "MONGO_URL=mongodb://mongodb/nodered"
- "ROOT_DOMAIN=PLACE_HOLDER"
labels:
- "traefik.enable=true"
- "traefik.http.routers.manager.rule=HOST(`manager.PLACE_HOLDER`)"
- "traefik.http.services.manager.loadbalancer.server.port=3000"
- "traefik.http.routers.manager.entrypoints=web"
networks:
internal:
external:
name: "internal"