-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (27 loc) · 876 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (27 loc) · 876 Bytes
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
version: '3.7'
services:
mentor-portal:
build:
context: .
dockerfile: Dockerfile
entrypoint: ['/usr/src/app/entrypoint.sh']
volumes:
- '.:/usr/src/app'
ports:
- 5001:5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=application.config.DevelopmentConfig
- DATABASE_URL=postgresql://postgres:postgres@mentor-portal-db:5432/mentor_portal_dev
- DATABASE_TEST_URL=postgresql://postgres:postgres@mentor-portal-db:5432/mentor_portal_test
depends_on:
- mentor-portal-db
mentor-portal-db:
build:
context: ./application/db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres