-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (24 loc) · 723 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (24 loc) · 723 Bytes
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
version: '3.8'
services:
reverse-proxy:
image: traefik:v2.11
command:
- '--api.insecure=true'
- '--providers.docker'
ports:
- '80:80' # The HTTP port
- '8081:8080' # The Web UI (enabled by --api.insecure=true)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
fastify-app:
build:
context: .
dockerfile: Dockerfile
labels:
- 'traefik.http.routers.fastify-app.rule=Host(`fastify-app.local`)'
- 'traefik.http.services.fastify-app.loadbalancer.server.port=3000'
environment:
NODE_ENV: production
SERVER_HOSTNAME: 0.0.0.0
TZ: Asia/Shanghai
command: yarn start:prod