-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.14 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
services:
# Build service for documentation
build:
build:
context: .
dockerfile: Dockerfile.build
container_name: arc42-builder
volumes:
# Mount output directory to host for easy access
- ./build:/workspace/build
# Optional: Override language selection
# Uncomment and modify the environment section to build specific languages only
# environment:
# LANGUAGES: "DE,EN"
# Optional: Simple HTTP server to view documentation
server:
image: nginx:alpine
container_name: arc42-server
ports:
- "8080:80"
volumes:
# Serve generated HTML documentation
- ./build:/usr/share/nginx/html:ro
# Optional: nginx config for better routing
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- build
# Only start server if build succeeds
# Validation service (optional)
validate:
build:
context: .
dockerfile: Dockerfile
container_name: arc42-validator
command: bash -c "./gradlew validate"
volumes:
- ./build:/workspace/build
# Optional: Named volume for build artifacts
volumes:
build-output:
driver: local