Skip to content

Added Dockerfile and entrypoint.sh to build a docker image#1

Open
mcbglug wants to merge 1 commit intodtonon:mainfrom
mcbglug:main
Open

Added Dockerfile and entrypoint.sh to build a docker image#1
mcbglug wants to merge 1 commit intodtonon:mainfrom
mcbglug:main

Conversation

@mcbglug
Copy link
Copy Markdown

@mcbglug mcbglug commented Oct 14, 2024

The docker image generated fetch all ENV from docker end generate .env file

Here an example of startup from command line

docker run --name chronicle -it --rm -p 3334:3334 -e OWNER_PUBKEY=dc1be7fdba0c8a1bf9065cdee45c948d574e780f74894251e9c95d16432655b9 dtonon/chronicle:latest

here a stack example
services:
chronicle:
image: dtonon/chronicle:latest
volumes:
- db:/app/db
ports:
- 3334:3334/tcp
environment:
OWNER_PUBKEY: "dc1be7fdba0c8a1bf9065cdee45c948d574e780f74894251e9c95d16432655b9"
RELAY_NAME: "chronicle.url.io"
RELAY_DESCRIPTION: "My Chronicle Relay"
RELAY_URL: "chronicle.url.io"
RELAY_CONTACT: "Daniele"
FETCH_SYNC: "TRUE"
MIN_FOLLOWERS: 2
DB_PATH: "/app/db"
restart: always

volumes:
db:

… generated fetch all ENV from docker end generate .env file
@dtonon
Copy link
Copy Markdown
Owner

dtonon commented Jan 9, 2025

Thanks and sorry for the huge delay!

A couple of things:

  • Can we rename entrypoint.sh in something like docker-entrypoint.sh so it's clear that it is used just for Docker?
  • It would be nice to add a docker.md with the how to, we can link it on the main readme in a new section:

Docker

You can run easily run Chronicle with Docker, see the related guide for more information and examples.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants