forked from USStateDept/State-TalentMAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.03 KB
/
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:
web:
build:
context: .
ports:
- 3000:3000
command: yarn run server
environment:
- PUBLIC_URL=/talentmap/
- STATIC_PATH=/app/build/
- API_ROOT=http://api:8000/
volumes:
- .:/app:delegated
- node-modules:/app/node_modules/
depends_on:
- api
- obc
obc:
build:
context: .
dockerfile: Dockerfile.obc
ports:
- 4000:4000
api:
build:
context: ../State-TalentMAP-API/
ports:
- 8000:8000
links:
- db
depends_on:
- db
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ../State-TalentMAP-API/:/app:delegated
environment:
- DJANGO_SECRET_KEY=development_secret_key
- DATABASE_URL=postgres://talentmap-user@db/talentmap
- DJANGO_DEBUG=true
db:
image: postgres:9.6.3
volumes:
- pgdata:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=talentmap
- POSTGRES_USER=talentmap-user
volumes:
pgdata:
node-modules: