Unraid Community App Template #150
Replies: 2 comments 3 replies
-
Since its really 3 containers required to make it, I highly recommend using the docker-compose plugin to get this up and running. Here is my compose file I use for my unraid server (since it doesn't seem to support Volumes or Network keys within docker-compose: I like to nest my appdata folders within a parent services:
dawarich_redis:
image: redis:7.0-alpine
command: redis-server
volumes:
- /mnt/user/appdata/compose-dawarich/shared:/var/shared/redis
dawarich_db:
image: postgres:14.2-alpine
container_name: dawarich_db
volumes:
- /mnt/user/appdata/compose-dawarich/db:/var/lib/postgresql/data
- /mnt/user/appdata/compose-dawarich/shared:/var/shared
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: YOURPASSWORD
dawarich_app:
image: freikin/dawarich:latest
container_name: dawarich_app
volumes:
- /mnt/user/appdata/compose-dawarich/gems:/usr/local/bundle/gems
- /mnt/user/appdata/compose-dawarich/public:/var/app/public
ports:
- 3731:3000
stdin_open: true
tty: true
entrypoint: dev-entrypoint.sh
command: ['bin/dev']
restart: on-failure
environment:
RAILS_ENV: development
REDIS_URL: redis://dawarich_redis:6379/0
DATABASE_HOST: dawarich_db
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: YOURPASSWORD
DATABASE_NAME: dawarich_development
MIN_MINUTES_SPENT_IN_CITY: 60
APPLICATION_HOST: localhost
APPLICATION_HOSTS: localhost
TIME_ZONE: America/Denver
APPLICATION_PROTOCOL: http
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
depends_on:
- dawarich_db
- dawarich_redis
dawarich_sidekiq:
image: freikin/dawarich:latest
container_name: dawarich_sidekiq
volumes:
- /mnt/user/appdata/compose-dawarich/gems:/usr/local/bundle/gems
- /mnt/user/appdata/compose-dawarich/public:/var/app/public
stdin_open: true
tty: true
entrypoint: dev-entrypoint.sh
command: ['sidekiq']
restart: on-failure
environment:
RAILS_ENV: development
REDIS_URL: redis://dawarich_redis:6379/0
DATABASE_HOST: dawarich_db
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: YOURPASSWORD
DATABASE_NAME: dawarich_development
APPLICATION_HOST: localhost
APPLICATION_HOSTS: localhost
BACKGROUND_PROCESSING_CONCURRENCY: 10
APPLICATION_PROTOCOL: http
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
depends_on:
- dawarich_db
- dawarich_redis
- dawarich_app |
Beta Was this translation helpful? Give feedback.
-
The solution by using the docker-compose plugin for Unraid seems more like a workaround for the initial request. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get a community app template for Unraid?
Beta Was this translation helpful? Give feedback.
All reactions