forked from Gitlink/forgeplus
整理初始菜单sql
This commit is contained in:
parent
14df764275
commit
4bd3d98021
|
@ -2,7 +2,7 @@
|
|||
bash -l -c "source /etc/profile.d/rvm.sh"
|
||||
export PATH=/usr/local/rvm/gems/ruby-2.4.5/bin:/usr/local/rvm/gems/ruby-2.4.5@global/bin:/usr/local/rvm/rubies/ruby-2.4.5/bin:$PATH
|
||||
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 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_ENV=production rails s -p 4000 -b '0.0.0.0'"
|
||||
bash -c "RAILS_ENV=production puma -C config/puma.rb"
|
File diff suppressed because one or more lines are too long
|
@ -6,10 +6,12 @@ networks:
|
|||
services:
|
||||
mysql:
|
||||
image: mysql:5.7.17
|
||||
container_name: gitlink-mysql
|
||||
command: --sql-mode=""
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
- /data/mysql:/var/lib/mysql
|
||||
- ./db/init.sql:/docker-entrypoint-initdb.d/forgeplus-init.sql
|
||||
ports:
|
||||
- "13306:3306"
|
||||
environment:
|
||||
|
@ -47,6 +49,7 @@ services:
|
|||
|
||||
web:
|
||||
image: gitlink-ubuntu20.04:latest
|
||||
container_name: gitlink-web
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
|
@ -66,6 +69,9 @@ services:
|
|||
tty: true
|
||||
volumes:
|
||||
- ./bin/start.sh:/start.sh
|
||||
- /data/webguazai/publicfiles:/home/pdl/forgeplus/public/files
|
||||
- /data/webguazai/publicavatars:/home/pdl/forgeplus/public/images/avatars
|
||||
- /data/webguazai/files:/home/pdl/forgeplus/files
|
||||
ports:
|
||||
- "4000:4000"
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in New Issue