mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
docker部署整理 启动
This commit is contained in:
@@ -21,9 +21,9 @@ RUN touch config/elasticsearch.yml
|
||||
RUN mkdir log
|
||||
|
||||
RUN /bin/bash -l -c 'bundle install'
|
||||
RUN /bin/bash -l -c 'RAILS_ENV=production rails db:create'
|
||||
RUN /bin/bash -l -c 'RAILS_ENV=production bundle exec rake sync_table_structure:import_csv'
|
||||
RUN /bin/bash -l -c 'RAILS_ENV=production rails db:migrate'
|
||||
#RUN /bin/bash -l -c 'RAILS_ENV=production rails db:create'
|
||||
#RUN /bin/bash -l -c 'RAILS_ENV=production bundle exec rake sync_table_structure:import_csv'
|
||||
#RUN /bin/bash -l -c 'RAILS_ENV=production rails db:migrate'
|
||||
|
||||
#EXPOSE 4000
|
||||
#RUN /bin/bash -l -c 'RAILS_ENV=production puma'
|
||||
@@ -57,7 +57,12 @@ services:
|
||||
- GITEA_USER=root
|
||||
- GITEA_PWD=gitlink#2023
|
||||
- GITEA_URL=gitea
|
||||
command: bash -c "cmd /home/pdl/gitlink && rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
|
||||
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'"
|
||||
stdin_open: true
|
||||
tty: true
|
||||
# volumes:
|
||||
|
||||
Reference in New Issue
Block a user