-
Notifications
You must be signed in to change notification settings - Fork 0
/
canal.yml
31 lines (30 loc) · 894 Bytes
/
canal.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
# https://hub.docker.com/r/canal/canal-server
services:
canal:
image: ${CANAL_IMAGE}
container_name: canal
restart: on-failure
environment:
- TZ=Asia/Shanghai
- canal.register.ip=${CANAL_REGISTER_IP}
- canal.port=${CANAL_PORT_11111}
- canal.metrics.pull.port=${CANAL_PORT_11112}
- canal.admin.port=${CANAL_PORT_11110}
- canal.admin.manager=${CANAL_ADMIN_MANAGER}
- canal.admin.user=${CANAL_ADMIN_USER}
- canal.admin.passwd=${CANAL_ADMIN_PASSWD}
volumes:
- ${CANAL_HOME}/logs:/home/admin/canal-server/logs
networks:
- canal
- canal_admin
ports:
- ${CANAL_PORT_11110}:${CANAL_PORT_11110}
- ${CANAL_PORT_11111}:${CANAL_PORT_11111}
- ${CANAL_PORT_11112}:${CANAL_PORT_11112}
networks:
canal:
driver: bridge
canal_admin:
external:
name: ${CANAL_ADMIN_SERVICE_NETWORK}