-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.76 KB
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
version: '3'
services:
traefik:
# The official v2 Traefik docker image
image: traefik:v2.10
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
# The HTTP port
- "80:80"
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- traefik-config:/etc/traefik/
networks:
- traefik
restart: unless-stopped
server:
depends_on:
- traefik
image: node:lts-alpine3.16
hostname: hyper-graph
labels:
- "traefik.http.routers.webserver.rule=Host(`www.hyper-graph.com`, `hyper-graph.com`)"
- "traefik.http.services.webserver.loadbalancer.server.port=80"
- "traefik.http.middlewares.web-ratelimit.ratelimit.average=100"
- "traefik.http.middlewares.web-ratelimit.ratelimit.burst=50"
- "traefik.http.middlewares.web-auth.basicauth.realm=MDDTools"
- "traefik.http.middlewares.web-auth.basicauth.users=${USERS}"
- "traefik.http.middlewares.webserver-chain.chain.middlewares=web-ratelimit,web-auth"
- "traefik.http.routers.webserver.middlewares=webserver-chain"
user: node
working_dir: /home/node/app/system
environment:
- NODE_ENV=production
volumes:
- type: bind
source: /home/hyper-graph/Projects/MDDTools
target: /home/node/app
- type: bind
source: /home/hyper-graph/Projects/DevAll
target: /home/node/DevAll
networks:
- traefik
command: "sh -c ./startServer.sh"
restart: unless-stopped
volumes:
traefik-config:
# Remember to `docker network create traefik` if it doesn't already exist
networks:
traefik:
external: true