34 lines
559 B
YAML
34 lines
559 B
YAML
version: '3'
|
|
|
|
services:
|
|
mongo:
|
|
image: mongo
|
|
tty: true
|
|
volumes:
|
|
- ./local/mongo:/data/db
|
|
ports:
|
|
- '27017:27017'
|
|
restart: on-failure
|
|
|
|
api:
|
|
image: obs-api
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
volumes:
|
|
- ./src:/opt/obsAPI/src
|
|
- ./local/api-data:/data
|
|
environment:
|
|
- PORT=3000
|
|
- MONGODB_URL=mongodb://mongo/obsTest
|
|
- UPLOADS_DIR=/data
|
|
links:
|
|
- mongo
|
|
ports:
|
|
- '3000:3000'
|
|
restart: on-failure
|
|
command:
|
|
- npm
|
|
- run
|
|
- dev
|