forked from wjy40118/fake-passport-bupt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
30 lines (29 loc) · 993 Bytes
/
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
version: "3.6"
services:
fake-passport-bupt:
build: .
image: charlie0129/fake-passport-bupt
container_name: fake-passport-bupt
restart: unless-stopped
# Uncomment the ports if you are not using traefik, i.e. you want to directly access it.
# ports:
# - "10985:10985"
networks:
- traefik-global-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.fake-passport-bupt.rule=Host(`${WEBSITE_URL}`)"
- "traefik.http.routers.fake-passport-bupt.entrypoints=web"
- "traefik.http.services.fake-passport-bupt.loadbalancer.server.port=${PORT}"
- "traefik.http.routers.fake-passport-bupt.middlewares=fake-passport-bupt-compress"
- "traefik.http.middlewares.fake-passport-bupt-compress.compress=true"
environment:
- "NODE_ENV=production"
volumes:
- ./logs:/usr/src/app/logs
- ./config:/usr/src/app/config
expose:
- "${PORT}"
networks:
traefik-global-proxy:
external: true