-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.devmode.yml
More file actions
61 lines (58 loc) · 1.74 KB
/
docker-compose.devmode.yml
File metadata and controls
61 lines (58 loc) · 1.74 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
# Dev-mode overlay — a separate disposable instance with dev tools enabled.
#
# Usage:
# ./run_devmode.sh # start (builds with dev tools, ports 8002/5434/6381)
# ./run_devmode.sh --down # tear down and wipe volumes
#
# Does NOT conflict with the normal dev stack (8000) or test suite (8001).
# Note this is for *TESTING* devmode and should not be used live (null encryption key, various changemes)
services:
app:
build:
context: .
dockerfile: Dockerfile.backend
args:
INCLUDE_DEV_TOOLS: "true"
ports: !override
- "8002:8000"
environment:
DATABASE_URL: postgresql+asyncpg://sheaf:sheafdev@db:5432/sheaf
REDIS_URL: redis://redis:6379/0
JWT_SECRET_KEY: devmode-jwt-secret-not-for-production
SHEAF_ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
SHEAF_MODE: selfhosted
ADMIN_AUTH_LEVEL: none
REGISTRATION_MODE: open
EMAIL_BACKEND: none
EMAIL_VERIFICATION: "off"
STORAGE_BACKEND: filesystem
IMAGE_SERVING: unsigned
RATE_LIMIT_ENABLED: "false"
# Dev job config
DEMO_WIPE_ENABLED: "${DEMO_WIPE_ENABLED:-false}"
DEMO_WIPE_INTERVAL_HOURS: "${DEMO_WIPE_INTERVAL_HOURS:-24}"
volumes:
- devmode-appdata:/app/data
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
db:
ports: !override
- "5434:5432"
volumes:
- devmode-pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: sheaf
POSTGRES_USER: sheaf
POSTGRES_PASSWORD: sheafdev
redis:
ports: !override
- "6381:6379"
volumes:
- devmode-redisdata:/data
volumes:
devmode-pgdata:
devmode-redisdata:
devmode-appdata: