forked from Bosh-StocksDigital/wagtailcolourpicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 834 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
version: '2'
# run the app in development mode
services:
app:
build: .
tty: true
volumes:
- .:/code
environment:
- DJANGO_MANAGEPY_COLLECTSTATIC=off
- DJANGO_SETTINGS_MODULE=example.settings
- SECRET_KEY=secret
- ALLOWED_HOSTS=*
- RDS_HOSTNAME=db
- RDS_PORT=5432
- RDS_DB_NAME=postgres
- RDS_USERNAME=postgres
- RDS_PASSWORD=password
- EMAIL_HOST=mail
- EMAIL_PORT=1025
depends_on:
- db
- mail
ports:
- 8000:8000
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
ports:
- 5432:5432
mail:
image: mailhog/mailhog
ports:
- 8025:8025