-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 1.13 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
services:
web:
build: .
entrypoint: sh -c "uv sync --group dev --group test; DEBUG=1 exec ./manage.py runserver 0.0.0.0:8000"
container_name: django_web
environment:
- SECRET_KEY=${SECRET_KEY-}
- DATABASE_URL=${DATABASE_URL-postgis://postgres:postgres@postgres/postgres}
- REDIS_URL=${REDIS_URL-redis://redis:6379}
- NTA_API_KEY
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- PYTHONWARNINGS=all
volumes:
- .:/app
ports:
- "8000:8000"
- "35729:35729"
restart: on-failure
postgres:
image: postgis/postgis
tmpfs:
- "/var/lib/postgresql/data/"
# # sloppy non-durable settings, which allegedly make the tests run faster
# # not to be used in production!
# command: --autovacuum=off --fsync=off --synchronous_commit=off --full_page_writes=off --work_mem=12MB --max-connections=10 --max_wal_senders=0
environment:
- PGUSER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis