/
docker-compose.yml
47 lines (41 loc) · 1.1 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
x-common-settings: &common-settings
build:
context: .
dockerfile: .dockerfiles/Dockerfile
depends_on:
- db
env_file:
- ".env"
init: true
volumes:
- ./media_root:/src/media_root
- ./static_root:/src/static_root
- .:/src
services:
db:
image: "pgautoupgrade/pgautoupgrade:latest"
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
volumes:
- postgres-data:/var/lib/postgresql/data/
- .:/src
hawkhundred:
<<: *common-settings
environment:
- "DJANGO_SETTINGS_MODULE=config.settings_hawkhundred"
ports:
- 8010:8000
web:
<<: *common-settings
# command: ["python", "-m", "manage", "tailwind", "runserver", "--skip-checks", "0.0.0.0:8000"]
# command: ["python", "-m", "manage", runserver", "--skip-checks", "0.0.0.0:8000"]
# environment:
# - "DJANGO_SETTINGS_MODULE=config.settings_trailhawks"
ports:
- 8000:8000
# qcluster:
# <<: *common-settings
# # command: ["python", "manage.py", "qcluster"]
# command: ["python", "-m", "manage", "qcluster", "--skip-checks"]
volumes:
postgres-data: