-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.7 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
58
59
60
61
62
63
services:
web:
platform: linux/amd64
build:
context: .
dockerfile: dev.Dockerfile
command: /app/scripts/dev-start.sh
working_dir: /app/src
volumes:
- ./src:/app/src:z
- ./var:/app/var:z
- ./scripts:/app/scripts:z
ports:
- "9050:8000"
environment:
- SECRET_KEY=${SECRET_KEY:-development-secret-key-change-me}
- DEBUG=True
- DATABASE_URL=sqlite:////app/var/data/wiki.db
- WIKI_REPO_PATH=/app/var/repo
- WIKI_REPO_URL=${WIKI_REPO_URL:-}
- WIKI_REPO_BRANCH=${WIKI_REPO_BRANCH:-}
- GIT_SSH_KEY=${GIT_SSH_KEY:-}
- CELERY_BROKER_URL=redis://cache:6379/1
- CELERY_RESULT_BACKEND=redis://cache:6379/1
- SITE_TITLE=${SITE_TITLE:-Giant Wiki}
depends_on:
cache:
condition: service_healthy
worker:
platform: linux/amd64
build:
context: .
dockerfile: dev.Dockerfile
command: /app/scripts/dev-worker.sh
working_dir: /app/src
volumes:
- ./src:/app/src:z
- ./var:/app/var:z
- ./scripts:/app/scripts:z
environment:
- SECRET_KEY=${SECRET_KEY:-development-secret-key-change-me}
- DEBUG=True
- DATABASE_URL=sqlite:////app/var/data/wiki.db
- WIKI_REPO_PATH=/app/var/repo
- WIKI_REPO_URL=${WIKI_REPO_URL:-}
- WIKI_REPO_BRANCH=${WIKI_REPO_BRANCH:-}
- GIT_SSH_KEY=${GIT_SSH_KEY:-}
- CELERY_BROKER_URL=redis://cache:6379/1
- CELERY_RESULT_BACKEND=redis://cache:6379/1
depends_on:
cache:
condition: service_healthy
cache:
image: redis:7-alpine
ports:
- "9052:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 5s
retries: 5