docker部署整理 启动
This commit is contained in:
parent
dd94480486
commit
38458764b4
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
bash -l -c "source /etc/profile.d/rvm.sh"
|
||||
bash -c "RAILS_ENV=production rails db:create"
|
||||
bash -c "RAILS_ENV=production bundle exec rake sync_table_structure:import_csv"
|
||||
bash -c "RAILS_ENV=production rails db:migrate"
|
||||
bash -c "rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
|
|
@ -58,15 +58,12 @@ services:
|
|||
- GITEA_PWD=gitlink#2023 #GITEA_PWD from gitea/start.sh
|
||||
- GITEA_URL=gitea
|
||||
command:
|
||||
- bash -l -c "source /etc/profile.d/rvm.sh"
|
||||
- bash -c "RAILS_ENV=production rails db:create"
|
||||
- bash -c "RAILS_ENV=production bundle exec rake sync_table_structure:import_csv"
|
||||
- bash -c "RAILS_ENV=production rails db:migrate"
|
||||
- bash -c "cmd /home/pdl/gitlink && rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
|
||||
- 'bash'
|
||||
- '/start.sh'
|
||||
stdin_open: true
|
||||
tty: true
|
||||
# volumes:
|
||||
# - .:/home/app/gitlink
|
||||
volumes:
|
||||
- ./bin/start.sh:/start.sh
|
||||
ports:
|
||||
- "4000:4000"
|
||||
depends_on:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
cp /gitea_hat/gitea_hat /usr/local/bin/gitea
|
||||
/usr/local/bin/gitea admin user create --username root --password gitlink#2023 --email root@example.org --config /etc/gitea/app.ini
|
||||
/usr/local/bin/gitea web --config /etc/gitea/app.ini
|
||||
|
||||
/usr/local/bin/gitea web --config /etc/gitea/app.ini
|
||||
/usr/local/bin/gitea admin user create --username root --password gitlink#2023 --email root@example.org --config /etc/gitea/app.ini
|
Loading…
Reference in New Issue