yapi-docker/docker-compose.yml
2022-03-16 20:00:31 +08:00

35 lines
690 B
YAML

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: yapi:latest
build: ./
container_name: yapi
environment:
- ADMIN_EMAIL=master@simaek.com
- DB_HOST=mongo
- DB_NAME=yapi
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