-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
47 lines (43 loc) · 1.03 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
version: '3'
services:
app:
build: ./
ports:
- "8000:8000"
command: python3 manage.py runserver 0.0.0.0:8000
environment:
- DJANGO_ENV=development
- DATABASE_HOST=db
- REDIS_URL=redis:6379
- REDIS_HOST=redis
volumes:
- ./:/app
depends_on:
- redis
- migration
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- ./database:/app/database
migration:
build: ./
command: python3 manage.py migrate
environment:
- DATABASE_HOST=db
- DJANGO_ENV=development
- REDIS_URL=redis:6379
- REDIS_HOST=redis
volumes:
- ./:/app
depends_on:
- db
redis:
image: redis
ports:
- "6379:6379"