-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 1.02 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
46
47
48
version: "3.9"
x-backend: &backend
build:
dockerfile: Dockerfile
context: .
target: backend-development
image: ${DOCKER_IMAGE:-local/continuum/web}:${DOCKER_TAG:-latest}
environment:
ALLOWED_HOSTS: "*"
DATABASE_URL: postgresql://postgres@database/db
DEBUG: 1
SECRET_KEY: super-secret
CSRF_TRUSTED_ORIGINS: >
http://localhost:8000
CORS_ORIGIN_WHITELIST: >
http://localhost:8000
volumes:
- ./:/app/:rw,delegated
services:
database:
image: postgres:13.8-alpine
volumes:
- ./_local/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: db
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- "5432:5432"
healthcheck:
test: pg_isready -Upostgres
interval: 1s
timeout: 30s
backend:
<<: *backend
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
depends_on:
database: {condition: service_healthy}
mypy:
<<: *backend
command: /app/bin/mypy.sh
stdin_open: true
tty: true