generated from sheenacodes/fvh_platform_out
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 956 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
version: '3'
services:
platform_outgoing_api:
build: ./platform_out/
entrypoint: ['/project/entrypoint.sh']
command: python manage.py run -h 0.0.0.0
volumes:
- ./platform_out/:/project/
ports:
- 5000:5000
environment:
- FLASK_APP=app/__init__.py
- FLASK_ENV=development
- APP_SETTINGS=app.config.DevelopmentConfig
- DATABASE_URL=postgresql://postgres:postgres@platform-db:5432/fvh_db_dev
- DATABASE_TEST_URL=postgresql://postgres:postgres@platform-db:5432/fvh_db_test
- SQL_HOST=platform-db
- SQL_PORT=5432
- DATABASE=postgres
depends_on:
- platform-db
platform-db:
build:
context: ./platform_out/db
dockerfile: Dockerfile
#volumes:
# - postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
postgres_data: