2022-06-13 02:41:19 +08:00
|
|
|
version: "3.2"
|
2022-01-28 12:10:09 +08:00
|
|
|
services:
|
|
|
|
flask-consul:
|
|
|
|
image: registry.cn-shenzhen.aliyuncs.com/starsl/flask-consul:latest
|
|
|
|
container_name: flask-consul
|
|
|
|
hostname: flask-consul
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /usr/share/zoneinfo/PRC:/etc/localtime
|
|
|
|
environment:
|
|
|
|
consul_token: xxxxx-xxxxx-xxxxx
|
|
|
|
consul_url: http://x.x.x.x:8500/v1
|
|
|
|
admin_passwd: xxxxxxxx
|
|
|
|
nginx-consul:
|
|
|
|
image: registry.cn-shenzhen.aliyuncs.com/starsl/nginx-consul:latest
|
|
|
|
container_name: nginx-consul
|
|
|
|
hostname: nginx-consul
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "1026:1026"
|
|
|
|
volumes:
|
|
|
|
- /usr/share/zoneinfo/PRC:/etc/localtime
|