-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
61 lines (60 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.9"
services:
# hint
hint:
build:
context: ./hint
dockerfile: Dockerfile.prod
#command: gunicorn hint.wsgi:application --bind 0.0.0.0:80 -w 4
command: python manage.py runserver 0.0.0.0:80
volumes:
- ./hint/base/static:/home/app/hint/staticfiles
- ./hint/base:/home/app/hint/base
- ./hint/hint:/home/app/hint/hint
- ./data:/home/app/data
# uncomment these to access the app directly for test purposes,
# but expect everything to be broken.
ports:
- 8080:80
env_file:
- ./.env.hint.dev
networks:
- hint
depends_on:
hint-db:
condition: service_healthy
hint-db:
image: postgres:13.0-alpine
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 30s
timeout: 5s
retries: 10 # this might seem too many retries, but there is data being copied...
volumes:
- hint-db_data:/var/lib/postgresql/data/
env_file:
- ./.env.hint.dev.db
networks:
- hint
# reverse proxy
proxy:
build: ./reverse-proxy
volumes:
- ./reverse-proxy/default.conf:/etc/nginx/conf.d/nginx.conf
#- static_proteobooster:/home/app/proteobooster/staticfiles
- ./hint/base/static:/home/app/hint/staticfiles
networks:
- hint
ports:
- 80:80
depends_on:
- hint
networks:
hint:
name: hint
external: false
volumes:
hint-db_data:
static_hint: