This commit is contained in:
Atridad Lahiji 2025-02-14 17:07:56 -06:00
parent 7c181e28dc
commit 596dbb307e
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
4 changed files with 53 additions and 1 deletions

11
compose/caddy.yml Normal file
View file

@ -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

14
compose/input.yml Normal file
View file

@ -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"

27
compose/rallly.yml Normal file
View file

@ -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

View file

@ -29,4 +29,4 @@ services:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
retries: 5