1234567891011121314151617181920212223242526272829303132333435 |
- # stack 不支持基于第2版写的docker-compose.yml ,version版本至少为3
- version: '3'
- services:
- redis:
- image: redis
- # ports:
- # - 6379:6379
- restart: always
- deploy:
- replicas: 2
- api:
- restart: on-failure
- depends_on:
- - interlock_redis
- image: registry.cn-hangzhou.aliyuncs.com/interlock/api:1.0
- # ports:
- # - 8520:8520
- deploy:
- replicas: 2
- # environment:
- # - BACKEND_URL=http://interlockapi:8520
- ui:
- restart: on-failure
- depends_on:
- - interlock_api
- image: registry.cn-hangzhou.aliyuncs.com/interlock/ui:1.0
- ports:
- - 8092:8092
- deploy:
- replicas: 3
- # volumes:
- # - ./nginx.conf:/etc/nginx/nginx.conf
|