-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (37 loc) · 1.04 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
version: '3'
networks:
docsify_net:
driver: bridge
services:
# docsify service to run docsify commands
docsify:
image: ghcr.io/sujaykumarh/docsify:latest
container_name: ${CONTAINER_NAME:-docsify}
# user: ${CURRENT_USER:-1001:1010}
restart: unless-stopped
working_dir: /docs
networks:
- docsify_net
ports:
- ${HTTP_PORT:-3000}:3000
- ${LIVE_SERVER_PORT:-3535}:${LIVE_SERVER_PORT:-3535}
volumes:
# Docs Source
- ${DOCS_DIR:-./docs}:/docs
command: serve --livereload-port=${LIVE_SERVER_PORT:-3535}
# docsify server
server:
image: ghcr.io/sujaykumarh/docsify:latest
container_name: ${CONTAINER_NAME:-docsify}_server
# user: ${CURRENT_USER:-1000:1000}
restart: unless-stopped
working_dir: /docs
networks:
- docsify_net
ports:
- ${HTTP_PORT:-3000}:3000
- ${LIVE_SERVER_PORT:-3535}:${LIVE_SERVER_PORT:-3535}
volumes:
# Docs Source
- ${DOCS_DIR:-./docs}:/docs
command: serve --livereload-port=${LIVE_SERVER_PORT:-3535}