yapi-docker/docker-compose.yml

43 lines
908 B
YAML
Raw Normal View History

2021-05-22 13:47:14 +00:00
version: '2.1'
services:
# mongo database for yapi
mongo:
image: mongo:2.8.0
container_name: mongo
# restart: always
# volumes:
# - ~/data/yapi/mongodb:/data/db #db dir
networks:
- backend
# yapi server
yapi:
image: simaek/yapi:latest
# build: ./
container_name: yapi
environment:
- YAPI_PORT=3000
- ADMIN_EMAIL=master@simaek.com
- DB_HOST=mongo
- DB_NAME=yapi
- DB_PORT=27017
- MAIL_ENABLE=false
- MAIL_HOST=127.0.0.1
- MAIL_PORT=465
- MAIL_FROM=master@simaek.com
- MAIL_USER=master
- MAIL_PWD=master
# restart: always
ports:
- 3000:3000
# volumes:
# - ~/data/yapi/log/yapi.log:/home/vendors/log # log dir
depends_on:
- mongo
#entrypoint: "sh /yapi/start.sh"
networks:
- backend
networks:
backend:
name: yapi
driver: bridge