-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 990 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.1'
services:
mysql:
image: docker.io/library/mysql:8.0
container_name: kim_mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
networks:
- kimnet
ports:
- "3306:3306"
volumes:
- ~/data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
redis:
image: docker.io/library/redis:6.2
container_name: kim_redis
command: redis-server
networks:
- kimnet
ports:
- "6379:6379"
volumes:
- ~/data/redis:/data
consul:
image: docker.io/library/consul:latest
container_name: kim_consul
networks:
- kimnet
ports:
- '8300:8300'
- '8301:8301'
- '8301:8301/udp'
- '8500:8500'
- '53:53'
- '53:53/udp'
command: agent -dev -dns-port=53 -recursor=8.8.8.8 -ui -client=0.0.0.0
environment:
CONSUL_BIND_INTERFACE: eth0
CONSUL_ALLOW_PRIVILEGED_PORTS: 53
networks:
kimnet: {}