-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
34 lines (34 loc) · 1.33 KB
/
docker-stack.yml
File metadata and controls
34 lines (34 loc) · 1.33 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
# this is used for development
# docker stack deploy -c docker-stack.yml ${NAME}
version: "3.0"
services:
fltngmmth_dev:
image: bresnow/fltngmmth_dev:latest
deploy:
placement:
constraints:
- node.role == manager
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.${NAME?What's the name of the app?}-http.rule=Host(`fltngmmth.com`)
- traefik.http.routers.${NAME?What's the name of the app?}-http.entrypoints=http
- traefik.http.routers.${NAME?What's the name of the app?}-http.middlewares=https-redirect
- traefik.http.routers.${NAME?What's the name of the app?}-https.rule=Host(`fltngmmth.com`)
- traefik.http.routers.${NAME?What's the name of the app?}-https.entrypoints=https
- traefik.http.routers.${NAME?What's the name of the app?}-https.tls=true
- traefik.http.routers.${NAME?What's the name of the app?}-https.tls.certresolver=le
- traefik.http.services.${NAME?What's the name of the app?}.loadbalancer.server.port=5173
volumes:
- ${PWD}:/usr/src/app
networks:
- traefik-public
networks:
traefik-public:
external: true
# volumes:
# luvcraft1:
# driver: local-persist
# driver_opts:
# mountpoint: ${PWD}