-
-
Save Chasnechok/6d82cf6abb1bc0f0f11da9f1d04bf0d8 to your computer and use it in GitHub Desktop.
Docker-compose for Kotasko
This file contains 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
# 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