Last active
July 5, 2021 17:32
-
-
Save IgorShadurin/619e34d449c7e0011d50eca492a80007 to your computer and use it in GitHub Desktop.
Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clone https://github.com/fairDataSociety/fairOS-dfs | |
Put `Dockerfile` & `docker-compose.yml` into project | |
Run `docker-compose up` | |
After start you can see bee node eth address which should be prefunded with gBzz & ETH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
clef-1: | |
image: ethersphere/clef:0.4.12 | |
restart: unless-stopped | |
environment: | |
- CLEF_CHAINID | |
volumes: | |
- clef-1:/app/data | |
command: full | |
bee-1: | |
image: ethersphere/bee:0.5.2 | |
restart: unless-stopped | |
environment: | |
- BEE_API_ADDR | |
- BEE_BLOCK_TIME | |
- BEE_BOOTNODE | |
- BEE_BOOTNODE_MODE | |
- BEE_CLEF_SIGNER_ENABLE | |
- BEE_CLEF_SIGNER_ENDPOINT=http://clef-1:8550 | |
- BEE_CONFIG | |
- BEE_CORS_ALLOWED_ORIGINS | |
- BEE_DATA_DIR | |
- BEE_CACHE_CAPACITY | |
- BEE_DB_OPEN_FILES_LIMIT | |
- BEE_DB_BLOCK_CACHE_CAPACITY | |
- BEE_DB_WRITE_BUFFER_SIZE | |
- BEE_DB_DISABLE_SEEKS_COMPACTION | |
- BEE_DEBUG_API_ADDR | |
- BEE_DEBUG_API_ENABLE | |
- BEE_GATEWAY_MODE | |
- BEE_GLOBAL_PINNING_ENABLE | |
- BEE_FULL_NODE | |
- BEE_NAT_ADDR | |
- BEE_NETWORK_ID | |
- BEE_P2P_ADDR | |
- BEE_P2P_QUIC_ENABLE | |
- BEE_P2P_WS_ENABLE | |
- BEE_PASSWORD | |
- BEE_PASSWORD_FILE | |
- BEE_PAYMENT_EARLY | |
- BEE_PAYMENT_THRESHOLD | |
- BEE_PAYMENT_TOLERANCE | |
- BEE_POSTAGE_STAMP_ADDRESS | |
- BEE_RESOLVER_OPTIONS | |
- BEE_STANDALONE | |
- BEE_SWAP_ENABLE | |
- BEE_SWAP_ENDPOINT | |
- BEE_SWAP_FACTORY_ADDRESS | |
- BEE_SWAP_LEGACY_FACTORY_ADDRESSES | |
- BEE_SWAP_INITIAL_DEPOSIT | |
- BEE_SWAP_DEPLOYMENT_GAS_PRICE | |
- BEE_TRACING_ENABLE | |
- BEE_TRACING_ENDPOINT | |
- BEE_TRACING_SERVICE_NAME | |
- BEE_TRANSACTION | |
- BEE_VERBOSITY | |
- BEE_WELCOME_MESSAGE | |
- BEE_MAINNET | |
ports: | |
- "${API_ADDR:-1633}${BEE_API_ADDR:-:1633}" | |
- "${P2P_ADDR:-1634}${BEE_P2P_ADDR:-:1634}" | |
- "${DEBUG_API_ADDR:-127.0.0.1:1635}${BEE_DEBUG_API_ADDR:-:1635}" | |
volumes: | |
- bee-1:/home/bee/.bee | |
command: start | |
depends_on: | |
- clef-1 | |
fairos: | |
restart: always | |
build: . | |
volumes: | |
- fairos:/usr/fairos | |
ports: | |
- '9090:9090' | |
depends_on: | |
- bee-1 | |
volumes: | |
clef-1: | |
bee-1: | |
fairos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.16 AS build | |
WORKDIR /usr/fairos | |
# enable modules caching in separate layer | |
COPY go.mod go.sum /usr/fairos/ | |
RUN go mod download | |
COPY . /usr/fairos/ | |
RUN make binary | |
FROM debian:10.9-slim | |
#ENV DEBIAN_FRONTEND noninteractive | |
#RUN apt-get update && apt-get install -y --no-install-recommends \ | |
# ca-certificates; \ | |
# apt-get clean; \ | |
# rm -rf /var/lib/apt/lists/*; | |
EXPOSE 9090 | |
COPY --from=build /usr/fairos/dist/dfs /usr/local/bin/dfs | |
ENTRYPOINT ["dfs", "server"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment