-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose-compile.yaml
85 lines (81 loc) · 1.84 KB
/
docker-compose-compile.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3"
services:
postgres:
container_name: nft-auction-postgres
build:
context: ./docker-postgres
restart: unless-stopped
env_file:
- docker-files/.env
expose:
- "5433"
ports:
- "5433:5433"
command: -c 'max_connections=100' -p 5433
volumes:
- ./docker-files/postgres-data:/var/lib/postgresql/data
node:
container_name: nft-auction-node
build:
context: hedera-nft-auction-demo-java-node
restart: unless-stopped
environment:
# Database connection
- DATABASE_URL=postgresql://postgres:5433/
# Run auction node only
- AUCTION_NODE=true
- REST_API=false
env_file:
- docker-files/.env
depends_on:
- postgres
volumes:
- ./docker-files:/demo
rest-api:
container_name: nft-auction-rest-api
build:
context: hedera-nft-auction-demo-java-node
restart: unless-stopped
environment:
# Run API only
- REST_API=true
- AUCTION_NODE=false
# Database connection
- DATABASE_URL=postgresql://postgres:5433/
# REST API Ports
- API_PORT=8081
- API_VERTICLE_COUNT=3
- ADMIN_API_PORT=8082
- ADMIN_API_VERTICLE_COUNT=1
env_file:
- docker-files/.env
expose:
- 8081
- 8082
depends_on:
- postgres
volumes:
- ./docker-files:/demo
ui:
container_name: nft-auction-ui
build:
context: hedera-nft-auction-demo-javascript-client
restart: unless-stopped
env_file:
- docker-files/.env
expose:
- 3000
proxy:
container_name: nft-auction-nginx-proxy
build:
context: docker-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
depends_on:
- ui
- rest-api
volumes:
- ./docker-files:/demo
- ./docker-files/conf.d:/etc/nginx/conf.d/