-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
40 lines (38 loc) · 1.02 KB
/
docker-compose.dev.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
services:
api:
user: "1000:1000"
build: .
restart: unless-stopped
command: "gunicorn -w 8 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --timeout 300 --name farmsubsidy_api \
--log-level info --log-file - farmsubsidy_store.api:app"
ports:
- 127.0.0.1:8000:8000
links:
- clickhouse
- redis
environment:
DEBUG: 1
DATABASE_URI: clickhouse
REDIS_URL: redis://redis
DATA_BASIC_AUTH: ${DATA_BASIC_AUTH}
API_CACHE: 1
API_ALLOWED_ORIGIN: ${API_ALLOWED_ORIGIN:-http://localhost:3000}
API_KEY: ${API_KEY:-secret-api-key}
PARALLEL: ${PARALLEL:-"-j4"}
volumes:
- ${DATA_ROOT:-.}/public/exports:/app/data/exports
- ${DATA_ROOT:-.}:/app/data
clickhouse:
# user: "1000:1000"
image: clickhouse/clickhouse-server
restart: unless-stopped
ports:
- 127.0.0.1:9000:9000
ulimits:
nofile:
soft: 65536
hard: 65536
redis:
user: "1000:1000"
image: redis
restart: unless-stopped