-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (54 loc) · 1.34 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
52
53
54
55
56
57
58
services:
postgres_gatewayapi:
image: postgres:16
container_name: gateway_db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=gatewayapi
volumes:
- ./postgres_gatewayapi:/var/lib/postgresql/data
ports:
- '5435:5432'
networks:
- shared_network
gateway_api:
image: "fluffypill0w/gateway_api:latest"
build:
dockerfile: apps/gateway-api/Dockerfile
container_name: gateway_api
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres_gatewayapi:5432/gatewayapi
ports:
- '5433:5433' # Map external port 5433 to internal port 5433, which is what axum server uses
depends_on:
- postgres_gatewayapi
networks:
- shared_network
enforcer:
image: "fluffypill0w/enforcer:latest"
build:
dockerfile: apps/enforcer/Dockerfile
container_name: enforcer
env_file:
- apps/enforcer/.env.docker
ports:
- '1235:5555'
depends_on:
- gateway_api
networks:
- shared_network
proposer:
image: "fluffypill0w/proposer:latest"
build:
dockerfile: apps/proposer/Dockerfile
container_name: proposer
env_file:
- apps/proposer/.env.docker
ports:
- '7777:7777'
networks:
- shared_network
networks:
shared_network:
external: true