forked from USStateDept/State-TalentMAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circleci-docker-compose.yml
45 lines (45 loc) · 996 Bytes
/
circleci-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
version: '2'
services:
web:
image: talentmap/@@REPO_NAME@@:@@LABEL@@
ports:
- 3000:3000
command: yarn run server
environment:
- PUBLIC_URL=/talentmap/
- STATIC_PATH=/app/build/
- API_ROOT=http://app:8000/
container_name: web
volumes_from:
- data
depends_on:
- app
data:
image: alpine:3.4
volumes:
- /app
command: /bin/true
container_name: data
app:
image: talentmap/@@API_REPO_NAME@@:@@API_REPO_BRANCH@@
ports:
- 8000:8000
links:
- db
- data
depends_on:
- db
- data
command: python manage.py runserver 0.0.0.0:8000
container_name: app
environment:
- DJANGO_SECRET_KEY=development_secret_key
- DATABASE_URL=postgres://talentmap-user@db/talentmap
- DJANGO_DEBUG=true
db:
image: postgres:9.6.3
volumes:
- /var/lib/postgresql/data/
environment:
- POSTGRES_DB=talentmap
- POSTGRES_USER=talentmap-user