-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.19 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
43
44
45
46
47
48
49
50
51
version: "3.8"
services:
service1:
image: def1ner/voting-service-grpc
command: bash -c "alembic upgrade head && uvicorn src.main:create_app --reload --host 0.0.0.0 --port 8000"
container_name: service1
restart: always
depends_on:
- database
ports:
- "8000:8000"
environment:
- PROJECT_NAME=Voting service
- DEBUG=True
- POSTGRES_DB=nat_intel
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DB_HOST=database
- DB_PORT=5432
- ECHO=False
- SECRET_KEY_TOKEN=
- ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=30
- GRPC_ADDRESS=service2:9000
database:
image: postgres
container_name: database
environment:
- POSTGRES_DB=nat_intel
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DB_HOST=database
- DB_PORT=5432
volumes:
- postgres-data:/var/lib/postgresql/data
service2:
image: def1ner/ethereum-service-grpc
command: bash -c "python3 src/main.py"
container_name: service2
restart: always
ports:
- "9000:9000"
environment:
- INFURA_ENDPOINT=
- GRPC_ADDRESS=service2:9000
volumes:
postgres-data: