Last active
February 1, 2019 17:19
-
-
Save j-chimienti/8c2beae4620735d916f82200aff2d628 to your computer and use it in GitHub Desktop.
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
version: '3.1' | |
services: | |
mongo1: | |
hostname: mongo1 | |
container_name: localmongo1 | |
image: mongo:4.0-xenial | |
expose: | |
- 27017 | |
restart: always | |
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ] | |
mongo2: | |
hostname: mongo2 | |
container_name: localmongo2 | |
image: mongo:4.0-xenial | |
expose: | |
- 27017 | |
restart: always | |
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ] | |
mongo3: | |
hostname: mongo3 | |
container_name: localmongo3 | |
image: mongo:4.0-xenial | |
expose: | |
- 27017 | |
restart: always | |
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ] | |
# pollofeed_app: | |
# container_name: pollofeed | |
# build: . | |
# external_links: | |
# - db | |
# restart: unless-stopped | |
# networks: | |
# - generated_default | |
# env_file: | |
# - .env | |
# environment: | |
# MONGO_URI: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@db/admin" | |
# ports: | |
# - "${APP_PORT}:${APP_PORT}" | |
networks: | |
default: | |
external: | |
name: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment