From 07923d8d6d0603febefc9c19db9756b70eee1305 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Tue, 29 Oct 2024 14:13:01 +0100 Subject: [PATCH] update stuff --- Dockerfile | 1 + examples/docker-compose.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 examples/docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 62323fa..71acd01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,3 +28,4 @@ LABEL maintainer="Adora Laura Kalb " EXPOSE 8080 ENTRYPOINT ["/bin/humble-bot"] +CMD ["daemon", "--config", "/etc/humble-bot/config.yaml"] diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml new file mode 100644 index 0000000..dbf805e --- /dev/null +++ b/examples/docker-compose.yml @@ -0,0 +1,26 @@ +services: + db: + image: postgres:16 + restart: always + environment: + POSTGRES_PASSWORD: df86e9fb27aa132626c4fd5e5cb1dc6a + POSTGRES_USER: humble-bot + POSTGRES_DB: humble-bot + healthcheck: + test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER -d $$POSTGRES_DB"] + interval: 30s + timeout: 10s + retries: 5 + volumes: + - ./postgres-data:/var/lib/postgresql/data + go-urlsh: + image: adoralaura/humble-bot + restart: always + ports: + - 127.0.0.1:3000:3000 + depends_on: + db: + condition: service_healthy + volumes: + - ./config:/etc/humble-bot:ro +