-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·50 lines (46 loc) · 990 Bytes
/
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
48
49
50
version: '2'
services:
app:
build:
context: .
args:
- REQUIREMENTS_FILE=/build/requirements/dev.txt
environment:
- DJANGO_MANAGEPY_COLLECTSTATIC=off
- DEV_MODE=on
- DJANGO_SETTINGS_MODULE=app.settings
- ALLOWED_HOSTS=*
- EMAIL_HOST=mail
- EMAIL_PORT=1025
- RDS_HOSTNAME=db
- RDS_PORT=5432
- RDS_DB_NAME=postgres
- RDS_USERNAME=postgres
- RDS_PASSWORD=password
- REDIS_HOST=redis
volumes:
- .:/code
depends_on:
- db
- redis
- mail
ports:
- "8000:8000"
command: ['python', './manage.py', 'runserver', '0.0.0.0:8000']
redis:
image: redis
mail:
image: mailhog/mailhog
expose:
- "1025"
ports:
- "8025:8025"
db:
image: postgres:9.6
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./.postgres:/var/lib/postgresql/data/pgdata