obs-portal/docker-compose.yaml

36 lines
651 B
YAML
Raw Normal View History

version: '3'
services:
2020-11-18 16:24:15 +00:00
mongo:
image: mongo
tty: true
volumes:
- ./local/mongo:/data/db
ports:
- '27017:27017'
restart: on-failure
2020-11-18 16:24:15 +00:00
api:
image: obs-api
build:
context: .
dockerfile: ./Dockerfile
volumes:
2020-11-28 18:17:19 +00:00
- ./src:/opt/obsAPI/src
2020-12-13 19:45:26 +00:00
- ./local/api-data:/data
- .migrations.js:/opt/obsAPI/.migrations.js
- ./migrations:/opt/obsAPI/migrations/
2020-11-18 16:24:15 +00:00
environment:
- PORT=3000
- MONGODB_URL=mongodb://mongo/obsTest
2020-12-19 14:32:46 +00:00
- DATA_DIR=/data
2020-11-18 16:24:15 +00:00
links:
- mongo
ports:
- '3000:3000'
restart: on-failure
command:
- npm
- run
- dev