mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-10 10:15:18 +00:00
add basic Docker configuration (#46)
* add initial Dockerfile * use alpine, build all source code, use ENTRYPOINT instead of CMD * add initial docker-compose.yml * map ports * add labels to image * fully specify base image version * add logging config * map .config to host folder instead of volume
This commit is contained in:
parent
1b810d624c
commit
0587e7d63d
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM golang:1.20.14-alpine3.19
|
||||
|
||||
LABEL org.opencontainers.image.title="Quilibrium Network Node"
|
||||
LABEL org.opencontainers.image.description="Quilibrium is a decentralized alternative to platform as a service providers."
|
||||
LABEL org.opencontainers.image.vendor=Quilibrium
|
||||
LABEL org.opencontainers.image.url=https://quilibrium.com/
|
||||
LABEL org.opencontainers.image.documentation=https://quilibrium.com/docs
|
||||
|
||||
ENV GOEXPERIMENT=arenas
|
||||
|
||||
WORKDIR /opt/ceremonyclient
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR /opt/ceremonyclient/node
|
||||
|
||||
RUN go mod download && go mod verify
|
||||
RUN go build ./...
|
||||
|
||||
ENTRYPOINT ["go", "run", "./..."]
|
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: "3.8"
|
||||
|
||||
name: quilibrium
|
||||
|
||||
services:
|
||||
node:
|
||||
build: ./
|
||||
image: quilibrium
|
||||
restart: always
|
||||
ports:
|
||||
- '8336:8336/udp' # p2p
|
||||
- '127.0.0.1:8337:8337/tcp' # gRPC
|
||||
- '127.0.0.1:8338:8338/tcp' # REST
|
||||
volumes:
|
||||
- ./.config:/opt/ceremonyclient/node/.config
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "5"
|
||||
max-size: 2048m
|
Loading…
Reference in New Issue
Block a user