Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New deploy #365

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 37 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,62 @@
version: '3'

services:
redis:
image: redis:5
command: redis-server --appendonly yes
ports:
- "6379:6379"
volumes:
- ~/redis_data:/data
- ../ct-volumes/redis_data:/data
restart: always
networks:
- backend
mongo:
image: mongo:latest
image: mongo
restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ../ct-volumes/mongo_data:/data/db
- ../ct-volumes/bucket:/bucket
expose:
- 27017
ports:
- "27017:27017"
volumes:
- ~/mongo_data:/data/db
networks:
- backend
# mongo-express:
# image: mongo-express
# restart: always
# ports:
# - 8081:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: example
# networks:
# - backend
# mongo:
# image: mongo:latest
# restart: always
# expose:
# - 27017
# ports:
# - "27017:27017"
# volumes:
# - ../ct-volumes/mongo_data:/data/db
# - ../ct-volumes/bucket:/bucket
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
# networks:
# - backend
server:
build:
context: .
dockerfile: scripts/api/development/Dockerfile
container_name: ct-api-local-container
image: ct-api-local-image
restart: always
environment:
- REDIS_HOST=redis
Expand All @@ -33,14 +65,14 @@ services:
volumes:
- /camera-trap-api/node_modules
- .:/camera-trap-api
- ../ct-volumes/tmp:/tmp
ports:
- 3000:3000
depends_on:
- redis
- mongo
networks:
- backend

networks:
backend:

Loading