-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
45 lines (41 loc) · 1.19 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
41
42
43
44
45
services:
website:
container_name: website
build:
context: .
dockerfile: ./website/Dockerfile
target: builder
args:
- GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_PAGES=${GITHUB_PAGES:-false}
- REPOSITORY_NAME=${REPOSITORY_NAME:-albumentations}
docs:
container_name: docs
build:
context: .
dockerfile: ./docs/Dockerfile
target: ${NODE_ENV:-development}
args:
- GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID}
ports:
- "127.0.0.1:${MKDOCS_PORT:-8000}:8000"
tty: true
environment:
- GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID}
- JUPYTER_PLATFORM_DIRS=1
- WORKSPACE_DIR=/workspace
- DOCS_DIR=/workspace/docs
- ALBUMENTATIONS_DIR=/workspace/albumentations
volumes:
# - ./docs:/workspace/docs # For development only
- docs_cache:/workspace/docs/src/.cache # Cache notebooks and other generated content
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 3
command: mkdocs serve -a 0.0.0.0:8000
volumes:
docs_cache:
driver: local