feat: 新增 docker-compose.yml
feat: 新增 docker-compose.yml
This commit is contained in:
commit
49862a7d74
@ -11,6 +11,7 @@ RUN git clone https://gitee.com/yllan/ferry_web.git
|
|||||||
WORKDIR ferry_web
|
WORKDIR ferry_web
|
||||||
|
|
||||||
RUN npm install -g cnpm --registry=https://registry.npmmirror.com
|
RUN npm install -g cnpm --registry=https://registry.npmmirror.com
|
||||||
|
RUN npm uninstall node-sass && npm i -D sass --registry=https://registry.npmmirror.com
|
||||||
RUN cnpm install
|
RUN cnpm install
|
||||||
RUN echo $'# just a flag\n\
|
RUN echo $'# just a flag\n\
|
||||||
ENV = \'production\'\n\n\
|
ENV = \'production\'\n\n\
|
||||||
|
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
|
||||||
|
ferry_mysql:
|
||||||
|
image: mysql:8
|
||||||
|
container_name: ferry_mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: '123456'
|
||||||
|
MYSQL_DATABASE: 'ferry'
|
||||||
|
MYSQL_USER: 'ferry'
|
||||||
|
MYSQL_PASSWORD: '123456'
|
||||||
|
|
||||||
|
|
||||||
|
ferry_redis:
|
||||||
|
container_name: ferry_redis
|
||||||
|
image: redis:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
command: redis-server --save 60 1 --loglevel warning
|
||||||
|
|
||||||
|
ferry:
|
||||||
|
image: ferry:latest
|
||||||
|
container_name: ferry
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- ferry_mysql
|
||||||
|
- ferry_redis
|
||||||
|
ports:
|
||||||
|
- "8002:8002"
|
||||||
|
volumes:
|
||||||
|
- ./config:/opt/workflow/ferry/config
|
Loading…
x
Reference in New Issue
Block a user