Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- rabbitmq:
- image: docker.io/rabbitmq:3.7.7-management
- container_name: rabbitmq01
- expose:
- - "5672"
- - "15672"
- ports:
- - "5672:5672"
- - "15672:15672"
- volumes:
- - /data01/rabbitmq:/var/lib/rabbitmq
- privileged: true
- restart: always
- hostname: rabbitmq01
- redis:
- image: docker.io/redis:4.0
- container_name: redis01
- expose:
- - "6379"
- ports:
- - "6379:6379"
- volumes:
- - /data01/redis:/data
- privileged: true
- restart: always
- command: redis-server --appendonly yes
- postgres:
- image: docker.io/postgres:10
- container_name: postgres01
- expose:
- - "5432"
- ports:
- - "5432:5432"
- volumes:
- - /data01/postgres/data:/var/lib/postgresql/data
- privileged: true
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=123456
- - PGDATA=/var/lib/postgresql/data/pgdata
- hostname: postgres01
- restart: always
- mongodb:
- image: docker.io/mongodb:4.0.1
- container_name: mongodb01
- expose:
- - "27017"
- ports:
- - "27017:27017"
- volumes:
- - /data01/mongodb/data:/data/db
- privileged: true
- environment:
- - MONGO_INITDB_ROOT_USERNAME=admin
- - MONGO_INITDB_ROOT_PASSWORD=123456
- hostname: mongodb01
- restart: always
Add Comment
Please, Sign In to add comment