-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.21 KB
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
47
48
49
50
51
52
53
54
55
56
57
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- node
ports:
- "8080"
volumes:
- ./.docker/templates:/etc/nginx/templates:ro
- ./.docker/nginx.conf:/etc/nginx/nginx.conf:ro
- ./:/app:delegated
environment:
NGINX_PORT: 8080
NGINX_PROXY_SERVICE: ${COMPOSE_PROJECT_NAME:?}-node-1:5173
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:?}.rule=Host(`${COMPOSE_DOMAIN:?}`)"
node:
image: node:22-alpine
command: sh -c "apk add --no-cache git && git config --global --add safe.directory /app && npm install && npx vitepress dev docs --host 0.0.0.0"
working_dir: /app
networks:
- app
ports:
- "5173"
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
markdownlint:
image: itkdev/markdownlint
profiles:
- dev
volumes:
- ./:/md
prettier:
image: jauderho/prettier
profiles:
- dev
volumes:
- ./:/work
volumes:
node_modules: