-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
46 lines (42 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '3.9'
services:
# traefik:
# image: "traefik:v2.9"
# container_name: "traefik"
# command:
# #- "--log.level=DEBUG"
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.web.address=:80"
# ports:
# - "80:80"
# - "8080:8080"
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
docusaurus:
image: node:19
labels:
- "traefik.enable=true"
- "traefik.http.routers.docusaurus.rule=Host(`doc.localhost`)"
- "traefik.http.routers.docusaurus.entrypoints=web"
volumes:
- .:/app
working_dir: /app
ports:
- 3000
- 8976:8976
command:
- /bin/bash
- -c
- cd site && npm run start -- --host 0.0.0.0
# nginx:
# image: nginx
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.nginx.rule=Host(`nginx.doc.localhost`)"
# - "traefik.http.routers.nginx.entrypoints=web"
# volumes:
# - ./site/build:/usr/share/nginx/html:ro
# ports:
# - 80