Created
April 16, 2020 18:50
-
-
Save ralyodio/ffb851c7b3f3cdf3b41d11a86205e869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
node: | |
container_name: nodetube | |
restart: always | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- "49161:3000" | |
volumes: | |
- .:/app/ | |
- /app/node_modules | |
- ./upload:/app/upload | |
- ./uploads:/app/uploads | |
environment: | |
- REDIS_HOST=redis | |
- MONGODB_DOCKER_URI=mongodb://nodetube-mongo:27017/nodetube | |
depends_on: | |
- redis | |
- mongo | |
command: npm start | |
networks: | |
- nodetube-network | |
mongo: | |
container_name: nodetube-mongo | |
restart: always | |
image: mongo:3.6 | |
volumes: | |
- ./data/db:/data/db | |
ports: | |
- "27011:27017" | |
networks: | |
- nodetube-network | |
redis: | |
container_name: nodetube-redis | |
restart: always | |
image: redis | |
networks: | |
- nodetube-network | |
networks: | |
nodetube-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment