-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 1.16 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
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
- "8080:8080"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
volumes:
- ./traefik.yml:/etc/traefik/traefik.yml
- ./tls.yml:/etc/traefik/tls.yml
- /var/run/docker.sock:/var/run/docker.sock
- certs:/etc/ssl/traefik
reverse-proxy-https-helper:
image: alpine
command: sh -c "cd /etc/ssl/traefik
&& wget traefik.me/cert.pem -O cert.pem
&& wget traefik.me/privkey.pem -O privkey.pem"
volumes:
- certs:/etc/ssl/traefik
seaferer:
image: node:20.11.0-alpine
working_dir: /usr/src/app
labels:
- "traefik.http.routers.seaferer.rule=Host(`seaferer.traefik.me`)"
- "traefik.http.routers.seaferer-tls.tls.domains[0].main=seaferer.traefik.me"
- "traefik.http.routers.seaferer-tls.tls.domains[0].sans=seaferer-*.traefik.me"
- "traefik.http.services.seaferer.loadbalancer.server.port=3000"
command: >
sh -c "npm install && npm run dev"
volumes:
- ./frontend:/usr/src/app
container_name: node-dev-env
volumes:
certs: