purr/examples/docker-stack.yml

45 lines
977 B
YAML
Raw Normal View History

version: '3.1'
# Default Docker Stack/Compose configuration for Purr.
# You will need to change all instances of "REPLACEME" with the appropriate details.
# Additionally, you may want to update the host port definitions for each service and
# remove the Mongo Express service entirely for production.
services:
mongodb:
image: mongo:4.4.6
ports:
- 27017:27017
volumes:
- ./data:/opt/purr/data
networks:
- webnet
environment:
MONGO_INITDB_ROOT_USERNAME: REPLACEME
MONGO_INITDB_ROOT_PASSWORD: REPLACEME
mexpress:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: REPLACEME
ME_CONFIG_MONGODB_ADMINPASSWORD: REPLACEME
ME_CONFIG_MONGODB_SERVER: mongodb
networks:
- webnet
depends_on:
- mongodb
purr:
image: purr
ports:
- 3000:3000
networks:
- webnet
depends_on:
- mongodb
networks:
webnet: