2018-11-27 19:20:17 +08:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mongo:4
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/data/db
|
|
|
|
environment:
|
2018-11-29 23:11:41 +08:00
|
|
|
MONGO_INITDB_DATABASE: monkey
|
2018-11-27 19:20:17 +08:00
|
|
|
monkey:
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
build: .
|
|
|
|
image: monkey:latest
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
environment:
|
2018-11-30 20:25:06 +08:00
|
|
|
MONGO_URL: mongodb://db:27017/monkeyisland
|
2018-11-27 19:20:17 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_data:
|