Skip to content

Commit

Permalink
Added a docker file that works on windows (CodingGarden#21)
Browse files Browse the repository at this point in the history
* Created docker-compose.yml.windows
  • Loading branch information
CallumChaney authored Jun 21, 2020
1 parent 91ac021 commit 5b1d0d1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions server/docker-compose.windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: "3.7"
services:
db:
image: mongo:4
restart: always
volumes:
- mongodb:/data/db
ports:
- 27018:${MONGO_PORT}
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}

api:
# TODO: wait for mongodb to be available...
image: entropychat.api
build: .
restart: on-failure
depends_on:
- db
volumes:
- ./:/usr/src/app:cached
- npm_cache:/root/.npm:delegated
- node_modules:/app/node_modules:delegated
ports:
- ${PORT}:${PORT}
environment:
PORT: ${PORT}
JWT_SECRET: ${JWT_SECRET}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
MONGO_HOST: ${MONGO_HOST}
MONGO_PORT: ${MONGO_PORT}
MONGO_DB_NAME: ${MONGO_DB_NAME}
MONGO_ROOT_USER: ${MONGO_ROOT_USER}
MONGO_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}

volumes:
npm_cache:
node_modules:
mongodb:

0 comments on commit 5b1d0d1

Please sign in to comment.