forked from codefordenver/partner-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (43 loc) · 1.34 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
version: '3'
services:
postgres:
build: ./backend/database
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=cfd_partner_finder
- POSTGRES_DB=cfd_partner_finder
ports:
- "5432:5432"
api:
build: ./backend
environment:
- FLASK_APP=api/app:app
- FLASK_ENV=development
- POSTGRES_PASSWORD=password
- POSTGRES_USER=cfd_partner_finder
- POSTGRES_DB=cfd_partner_finder
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- SECRET_KEY=supersafe
volumes: ["./backend:/app"]
ports:
- "8000:8000"
depends_on:
- postgres
command: >
/bin/bash -c "python database/wait_for_db.py
&& alembic upgrade head
&& python database/create_dev_users.py
&& python database/scrape_CNP.py
&& python database/create_tags.py
&& gunicorn run_app:app -w 1 --threads 1 -b 0.0.0.0:8000 --reload"
frontend:
build: ./frontend
environment:
- API_HOST=http://localhost:8000
- API_PASSWORD=password
volumes: ["./frontend/src:/app/src"]
ports:
- "1234:1234"
- "1235:1235"