Skip to content

Instantly share code, notes, and snippets.

@zxx
Created March 8, 2020 05:50
Show Gist options
  • Save zxx/f5cf1e6294c64f875dcd52ecf2c919d6 to your computer and use it in GitHub Desktop.
Save zxx/f5cf1e6294c64f875dcd52ecf2c919d6 to your computer and use it in GitHub Desktop.
version: '3'
services:
tracker:
build: .
expose:
- "5000"
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
devices:
- tracker
ports:
- "80:80"
@zxx
Copy link
Author

zxx commented Mar 8, 2020

tracker 服务启动3个实例

docker-compose up --scale tracker=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment