31 lines
678 B
YAML
31 lines
678 B
YAML
|
services:
|
||
|
mongo:
|
||
|
image: mongo:8.0
|
||
|
container_name: mongo
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "27017:27017"
|
||
|
environment:
|
||
|
MONGO_INITDB_ROOT_USERNAME: root
|
||
|
MONGO_INITDB_ROOT_PASSWORD: example
|
||
|
|
||
|
etcd:
|
||
|
image: quay.io/coreos/etcd:v3.5.5
|
||
|
container_name: etcd
|
||
|
restart: always
|
||
|
command: >
|
||
|
/usr/local/bin/etcd
|
||
|
--data-dir=/etcd-data
|
||
|
--name=etcd
|
||
|
--listen-client-urls=http://0.0.0.0:2379
|
||
|
--advertise-client-urls=http://etcd:2379
|
||
|
ports:
|
||
|
- "2379:2379"
|
||
|
- "2380:2380"
|
||
|
|
||
|
redis:
|
||
|
image: redis:7.0
|
||
|
container_name: redis
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "6379:6379"
|