From 596dbb307e7ae30db33bd43c08332308abb3ec3e Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Fri, 14 Feb 2025 17:07:56 -0600 Subject: [PATCH] Updates --- compose/caddy.yml | 11 +++++++++++ compose/input.yml | 14 ++++++++++++++ compose/rallly.yml | 27 +++++++++++++++++++++++++++ compose/umami.yml | 2 +- 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 compose/caddy.yml create mode 100644 compose/input.yml create mode 100644 compose/rallly.yml diff --git a/compose/caddy.yml b/compose/caddy.yml new file mode 100644 index 0000000..341baf5 --- /dev/null +++ b/compose/caddy.yml @@ -0,0 +1,11 @@ +services: + caddy: + image: caddy:latest + restart: unless-stopped + ports: + - "80:80" + - "443:443" + - "443:443/udp" + volumes: + - ${ROOT_DIR}/conf:/etc/caddy + - ${ROOT_DIR}/caddy_data:/data diff --git a/compose/input.yml b/compose/input.yml new file mode 100644 index 0000000..b4608d2 --- /dev/null +++ b/compose/input.yml @@ -0,0 +1,14 @@ +services: + input: + image: ghcr.io/deck9/input:main + volumes: + - ${ROOT_DIR}:/var/www/html/storage + ports: + - ${APP_PORT}:8080 + restart: unless-stopped + environment: + - APP_URL="https://${HOSTNAME}:8080" + - APP_KEY=${APP_KEY} + - DB_CONNECTION="sqlite" + - SESSION_DRIVER="file" + - CACHE_DRIVER="file" diff --git a/compose/rallly.yml b/compose/rallly.yml new file mode 100644 index 0000000..473b727 --- /dev/null +++ b/compose/rallly.yml @@ -0,0 +1,27 @@ +services: + rallly_db: + image: postgres:14.2 + restart: always + volumes: + - ${ROOT_DIR}/db-data:/var/lib/postgresql/data + environment: + - POSTGRES_PASSWORD=postgres + - POSTGRES_DB=db + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 + + rallly: + image: lukevella/rallly:latest + restart: always + platform: linux/amd64 + depends_on: + - rallly_db + ports: + - ${APP_PORT}:3000 + environment: + - DATABASE_URL=postgres://postgres:postgres@rallly_db/db + env_file: + - stack.env diff --git a/compose/umami.yml b/compose/umami.yml index b6126c5..47a0bb5 100644 --- a/compose/umami.yml +++ b/compose/umami.yml @@ -29,4 +29,4 @@ services: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 5s - retries: 5 + retries: 5 \ No newline at end of file