-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.11 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
version: '2.1'
services:
nginx:
container_name: nginx
build: ./nginx/
restart: always
ports:
- 8080:80
depends_on:
users-service:
condition: service_started
links:
- users-service
users-db:
container_name: users-db
build: https://github.com/Sacro/flask-microservices-users.git#master:project/db
#build : ../flask-microservices-users/project/db/
ports:
- 5435:5432 # expose ports - HOST:CONTAINER
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: exit 0
users-service:
container_name: users-service
build: https://github.com/Sacro/flask-microservices-users.git
#build: ../flask-microservices-users/
ports:
- 5001:5000 # expose ports - HOST:CONTAINER
environment:
- APP_SETTINGS=project.config.DevelopmentConfig
- DATABASE_URL=postgres://postgres:postgres@users-db:5432/users_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@users-db:5432/users_test
depends_on:
users-db:
condition: service_healthy
links:
- users-db