mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
docker部署整理
This commit is contained in:
@@ -4,6 +4,8 @@ ADD ./ /home/pdl/gitlink
|
|||||||
|
|
||||||
WORKDIR /home/pdl/gitlink
|
WORKDIR /home/pdl/gitlink
|
||||||
|
|
||||||
|
RUN /bin/bash -l -c "source /etc/profile.d/rvm.sh"
|
||||||
|
|
||||||
RUN /bin/bash -l -c 'gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/'
|
RUN /bin/bash -l -c 'gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/'
|
||||||
|
|
||||||
RUN /bin/bash -l -c 'gem update --system'
|
RUN /bin/bash -l -c 'gem update --system'
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ services:
|
|||||||
web:
|
web:
|
||||||
image: gitlink-ubuntu20.04:latest
|
image: gitlink-ubuntu20.04:latest
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ./
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_USER=root
|
- MYSQL_USER=root
|
||||||
@@ -57,7 +57,7 @@ services:
|
|||||||
- GITEA_USER=root
|
- GITEA_USER=root
|
||||||
- GITEA_PWD=gitlink#2023
|
- GITEA_PWD=gitlink#2023
|
||||||
- GITEA_URL=gitea
|
- GITEA_URL=gitea
|
||||||
command: bash -c "cmd /home/pdl/forgeplus && rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
|
command: bash -c "cmd /home/pdl/gitlink && rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
# volumes:
|
# volumes:
|
||||||
@@ -67,3 +67,5 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
- gitea
|
- gitea
|
||||||
|
networks:
|
||||||
|
- gitlink
|
||||||
|
|||||||
Reference in New Issue
Block a user