forked from davidfic/estate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 913 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
dev:
build: .
dockerfile: Dockerfile
command: /usr/local/service/estate/local.sh
ports:
- 8000:8000
- 3000:3000
volumes:
- $PWD/estate:/usr/local/service/estate
- $PWD/webpack:/usr/local/service/webpack
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
environment:
- "DEBUG=True"
- "PGHOST=postgres"
- "PGUSER=postgres"
- "PGPASSWORD=estate"
- "PGDATABASE=estate"
- "DATABASE_URL=postgres://postgres:estate@postgres:5432/estate"
links:
- postgres:postgres
prod:
build: .
dockerfile: Dockerfile
ports:
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "DATABASE_URL=postgres://postgres:estate@postgres:5432/estate"
- "GUNICORN_WORKER_COUNT=5"
links:
- postgres:postgres
postgres:
image: postgres:9.5
environment:
- "POSTGRES_PASSWORD=estate"
- "POSTGRES_DB=estate"