forked from newsdev/foialawya
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
42 lines (42 loc) · 994 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'
services:
web:
build: .
ports:
- "8080:80"
# host port : container port
depends_on:
- add_data
environment:
- DJANGO_SETTINGS_MODULE=config.docker.settings
- DB_HOST=psql
- DB_NAME=foias
- DB_USER=postgres
- DB_PASSWORD=asdf
links:
- psql
add_data:
build: .
environment:
- DJANGO_SETTINGS_MODULE=config.docker.settings
- DB_HOST=psql
- DB_NAME=foias
- DB_USER=postgres
- DB_PASSWORD=asdf
depends_on:
- psql
links:
- psql
command: 'python manage.py loaddata foias/fixtures/opensource.yaml'
psql:
image: postgres:9.6.2
volumes:
- postgres-db-volume:/data/postgres
environment:
POSTGRES_USER: postgres # this doesn't seem to take. I don't know why.
POSTGRES_DB: foias
POSTGRES_PASSWORD: asdf
ports:
- "5433:5432"
volumes:
postgres-db-volume: # this space intentionally left blank.