forked from abraryaser02/p-5cevents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
36 lines (33 loc) · 875 Bytes
/
docker-compose-dev.yml
File metadata and controls
36 lines (33 loc) · 875 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
32
33
34
35
version: '3.8'
services:
users:
container_name: users
build:
context: ./services/users
dockerfile: Dockerfile-dev
command: python manage.py run -h 0.0.0.0
volumes:
- ./services/users/:/usr/src/app/
ports:
- 5001:5000
environment:
- FLASK_APP=project/__init__.py
- FLASK_DEBUG=1
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgresql://postgres:postgres@users-db:5432/users_dev
- DATABASE_TEST_URL=postgresql://postgres:postgres@users-db:5432/users_test
depends_on:
- users-db
links:
- users-db
users-db:
image: postgres:13
container_name: users-db
build:
context: ./services/users/project/db
dockerfile: Dockerfile
ports:
- 5435:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres