-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 1.02 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
version: '3.8'
services:
hugo-base:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "3000:80"
container_name: hugo-base-module
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Метаданные
labels:
- "traefik.enable=true"
- "traefik.http.routers.hugo-base.rule=Host(`localhost`)"
- "traefik.http.services.hugo-base.loadbalancer.server.port=80"
- "org.opencontainers.image.title=hugo-base"
- "org.opencontainers.image.description=Educational module template"
# Для разработки - Hugo server с live reload
hugo-dev:
image: klakegg/hugo:0.148.0-ext-alpine
command: hugo server --bind 0.0.0.0 --buildDrafts --buildFuture
ports:
- "1313:1313"
volumes:
- .:/src
working_dir: /src
container_name: hugo-base-dev
profiles: ["dev"]