Skip to content

Commit

Permalink
Switched prod and dev docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Jan 26, 2019
1 parent 4b4c5cb commit c4a7585
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
53 changes: 53 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '3'
volumes:
mongodb_data:
external: false
networks:
cocoannotator:
external: false

services:
frontend:
container_name: annotator_client
build:
context: .
dockerfile: ./docker/client/Dockerfile
ports:
- '8080:8080'
volumes:
- './client:/workspace/client'
networks:
- cocoannotator
depends_on:
- flask
flask:
container_name: annotator_flask
build:
context: .
dockerfile: ./docker/api/Dockerfile
ports:
- '5000:5000'
volumes:
- './datasets:/datasets'
- './app:/workspace/app'
- './.git:/workspace/.git'
environment:
- FLASK_APP=app
- FLASK_ENV=development
networks:
- cocoannotator
depends_on:
- database
database:
image: mongo:4
container_name: annotator_mongodb
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- 'mongodb_data:/data/db'
ports:
- '27017:27017'
command: 'mongod --smallfiles --logpath=/dev/null'
networks:
- cocoannotator
26 changes: 0 additions & 26 deletions docker-compose.prod.yml

This file was deleted.

33 changes: 3 additions & 30 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,20 @@ version: '3'
volumes:
mongodb_data:
external: false
networks:
cocoannotator:
external: false

services:
frontend:
container_name: annotator_client
build:
context: .
dockerfile: ./docker/client/Dockerfile
ports:
- '8080:8080'
volumes:
- './client:/workspace/client'
networks:
- cocoannotator
depends_on:
- flask
flask:
container_name: annotator_flask
build:
context: .
dockerfile: ./docker/api/Dockerfile
image: jsbroks/coco-annotator:latest
restart: always
ports:
- '5000:5000'
volumes:
- './datasets:/datasets'
- './app:/workspace/app'
- './.git:/workspace/.git'
environment:
- FLASK_APP=app
- FLASK_ENV=development
networks:
- cocoannotator
depends_on:
- database
database:
image: mongo:4
container_name: annotator_mongodb
restart: always
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
Expand All @@ -49,5 +24,3 @@ services:
ports:
- '27017:27017'
command: 'mongod --smallfiles --logpath=/dev/null'
networks:
- cocoannotator

0 comments on commit c4a7585

Please sign in to comment.