-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.04 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
41
42
43
44
45
46
47
48
49
50
51
52
version: "3.7"
services:
requirements:
container_name: pygrn_catchup_requirements
build:
context: .
dockerfile: docker/django/Dockerfile
args:
- EXTRA_REQUIREMENTS=devel
image: pygrn_catchup_requirements
entrypoint:
- /bin/bash
command: []
db:
container_name: pygrn_catchup_db
build:
context: docker/db/
dockerfile: Dockerfile
image: pygrn_catchup_db
env_file:
- app.env
command: ["/bin/bash", "/app/docker/db/postgresql10.sh"]
volumes:
- .:/app
- dbdata:/var/lib/postgresql/
django:
container_name: pygrn_catchup_django
depends_on:
- db
image: pygrn_catchup_requirements
env_file:
- app.env
command: ["/bin/bash", "/app/docker/wait-for-it.sh", "db:5432", "--", "/bin/bash", "/app/docker/django/runserver.sh"]
volumes:
- .:/app:cached
ports:
- 8000:8000
networks:
default:
aliases:
- catchup
volumes:
dbdata:
networks:
default:
# external:
# name: pygrn