[Docker] Improve file permissions

Volumes get created on the host as the user that docker is running as (root, most likely)
This is annoying, and creates issues when running the image as a non-root user
This commit is contained in:
Earlopain 2024-01-14 16:30:51 +01:00
parent 8e94b9776e
commit 4ede4cefb3
No known key found for this signature in database
GPG Key ID: 48860312319ADF61
2 changed files with 1 additions and 7 deletions

View File

@ -1,4 +1,4 @@
server: bin/rails server -p 9000 -b 0.0.0.0 server: bin/rails server -p 9000 -b 0.0.0.0 --pid=/tmp/rails-server.pid
# server: bundle exec unicorn -c config/unicorn/development.rb # server: bundle exec unicorn -c config/unicorn/development.rb
jobs: SIDEKIQ_QUEUES="low_prio:1;video:1;iqdb:1;tags:2;default:3;high_prio:5" bundle exec sidekiq jobs: SIDEKIQ_QUEUES="low_prio:1;video:1;iqdb:1;tags:2;default:3;high_prio:5" bundle exec sidekiq
cron: run-parts /etc/periodic/daily && crond -f cron: run-parts /etc/periodic/daily && crond -f

View File

@ -35,11 +35,8 @@ services:
volumes: volumes:
- .:/app - .:/app
- node_modules:/app/node_modules - node_modules:/app/node_modules
- public_packs:/app/public/packs
- post_data:/app/public/data - post_data:/app/public/data
- ./docker/cron_tasks/daily:/etc/periodic/daily - ./docker/cron_tasks/daily:/etc/periodic/daily
tmpfs:
- /app/tmp/pids
environment: environment:
<<: *common-env <<: *common-env
RAILS_ENV: development RAILS_ENV: development
@ -67,7 +64,6 @@ services:
volumes: volumes:
- ./public:/app/public - ./public:/app/public
- post_data:/app/public/data - post_data:/app/public/data
- public_packs:/app/public/packs
- ./docker/default.conf.template:/etc/nginx/templates/default.conf.template - ./docker/default.conf.template:/etc/nginx/templates/default.conf.template
environment: environment:
<<: *common-env <<: *common-env
@ -173,7 +169,5 @@ volumes:
db_data: db_data:
redis_data_v2: redis_data_v2:
node_modules: node_modules:
public_packs:
public_packs_test:
rubocop_cache: rubocop_cache:
discord_joiner_data: discord_joiner_data: