You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
796 B
36 lines
796 B
version: '3.1'
|
|
|
|
services:
|
|
mongo:
|
|
container_name: mongo
|
|
image: mongo:4.2.10
|
|
restart: always
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
|
ports:
|
|
- 27017:27017
|
|
volumes:
|
|
- ${DATA_HOME}:/data/db
|
|
mongo-express:
|
|
container_name: mongo-express
|
|
image: mongo-express
|
|
restart: always
|
|
ports:
|
|
- 8181:8081
|
|
environment:
|
|
ME_CONFIG_MONGODB_SERVER: 'mongo'
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGODB_USER}
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGODB_PASSWORD}
|
|
|
|
redis:
|
|
container_name: redis
|
|
image: redis:6.0.8
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
command: >
|
|
--requirepass ${REDIS_PASSWORD}
|
|
volumes:
|
|
- ${DATA_HOME}:/data
|