mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-01-18 15:36:27 +00:00
deployment
This commit is contained in:
parent
5d936c6177
commit
cd18757cb8
@ -16,4 +16,4 @@ RUN go build -ldflags="-s -w" -o /app/blockd cmd/main.go
|
|||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD ["/app/blockd", "-log-level=info","-log-local=false","-log-add-source=true","-rest-address=0.0.0.0:8080","-db-host=blockd-db:5432","-db-database=blockd","-db-user=blockd","-db-secret=blockd","-db-enable-tls=false", "-cache-host=blockd-cache:6379"]
|
CMD ["/app/blockd", "-log-level=info","-log-local=false","-log-add-source=true","-rest-address=0.0.0.0:8080","-db-host=blockd-db:5432","-db-database=blockd","-db-user=blockd","-db-secret=blockd","-db-enable-tls=false", "-cache-host=blockd-cache:6379", "--chain-api-url=chain-api:3000"]
|
||||||
|
@ -24,8 +24,19 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
blockd-db:
|
blockd-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
chain-api:
|
||||||
|
condition: service_started
|
||||||
profiles: [blockd]
|
profiles: [blockd]
|
||||||
|
|
||||||
|
chain-api:
|
||||||
|
container_name: chain-api
|
||||||
|
build:
|
||||||
|
context: ../chain-api
|
||||||
|
dockerfile: ../chain-api/Dockerfile
|
||||||
|
networks:
|
||||||
|
- blockd-net
|
||||||
|
- syslog
|
||||||
|
|
||||||
blockd-db:
|
blockd-db:
|
||||||
container_name: blockd-db
|
container_name: blockd-db
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
@ -109,3 +120,4 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
profiles: [metrics]
|
profiles: [metrics]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user