Skip to content

Instantly share code, notes, and snippets.

@Chasnechok
Last active September 14, 2021 13:06
Show Gist options
  • Save Chasnechok/6d82cf6abb1bc0f0f11da9f1d04bf0d8 to your computer and use it in GitHub Desktop.
Save Chasnechok/6d82cf6abb1bc0f0f11da9f1d04bf0d8 to your computer and use it in GitHub Desktop.
Docker-compose for Kotasko
# This config assumes you're running an external mongodb container connected to network "mongo-network"
# E.x: docker run --name mongodb -v mongo-data:/data/db --network mongo-network --network-alias mongo -d mongo
version: '3.9'
services:
server:
build:
context: ./kotasko-server
networks:
- mongo-network
- default
external_links:
- "mongodb:mongo"
volumes:
- kotaskoFiles:/../userFiles
ports:
- 5000:5000
client:
build:
context: ./kotasko-client
ports:
- 3000:3000
depends_on:
- 'server'
volumes:
kotaskoFiles:
driver: local
networks:
mongo-network:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment