forked from mamix1116/owaranai-meter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yml
58 lines (56 loc) · 1.08 KB
/
docker-compose.development.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
version: "3.7"
services:
app:
build:
context: ./app
dockerfile: Dockerfile.development
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000
working_dir: /usr/src/app/
volumes:
- ./app:/usr/src/app
- static_volume:/usr/src/app/staticfiles
- media_volume:/usr/src/app/mediafiles
expose:
- 8000
ports:
- 8000:8000
env_file:
- ./.env.development
depends_on:
- db
nginx:
build:
context: ./frontend
dockerfile: Dockerfile.development
expose:
- 80
ports:
- 1337:80
volumes:
- media_volume:/usr/src/app/mediafiles
depends_on:
- app
links:
- app
db:
image: postgres:12.0-alpine
volumes:
- ./var/db/data:/var/lib/postgresql/data/
env_file:
- ./.env.development
pgadmin4:
image: dpage/pgadmin4:latest
volumes:
- pgadmin4:/var/lib/pgadmin
env_file:
- ./.env.development
ports:
- 5555:80
depends_on:
- db
links:
- db
volumes:
pgadmin4:
static_volume:
media_volume: