Created
July 17, 2020 04:07
-
-
Save w3cj/3f54eea8fb7ef7c31f7f017ee1a19db7 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.7' | |
services: | |
db: | |
image: mongo:4 | |
restart: always | |
volumes: | |
- ./docker-data/db:/data/db | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER} | |
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD} | |
api: | |
# TODO: wait for mongodb to be available... | |
image: docker.pkg.github.com/codinggarden/entropychat.app/entropychat.api:latest | |
restart: on-failure | |
depends_on: | |
- db | |
ports: | |
- ${PORT}:${PORT} | |
environment: | |
NODE_ENV: ${NODE_ENV} | |
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment