forked from baranbartu/microservices-with-fastapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 993 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
39
40
version: '3.7'
services:
gateway:
image: baranbartu/k-api-gateway:latest
command: sh -c "uvicorn main:app --reload --host 0.0.0.0"
build:
context: ./gateway
dockerfile: Dockerfile
env_file:
- ./gateway/.env
ports:
- 8001:8000
depends_on:
- users
- orders
volumes:
- ./gateway:/app
users:
image: baranbartu/k-users:latest
command: sh -c "uvicorn main:app --reload --host 0.0.0.0"
build:
context: ./users
dockerfile: Dockerfile
env_file:
- ./users/.env
volumes:
- ./users:/app
orders:
image: baranbartu/k-orders:latest
command: sh -c "uvicorn main:app --reload --host 0.0.0.0"
build:
context: ./orders
dockerfile: Dockerfile
env_file:
- ./orders/.env
volumes:
- ./orders:/app