加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
Nick Kozlov 提交于 2020-06-09 20:32 . API errors handling changes (#1140)
version: '3.7'
services:
nginx:
container_name: nginx
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8080:80
links:
- platform_api
- swagger_api
platform_api:
container_name: api
build:
context: .
args:
- SERVICE=api
ports:
- 8420:8420
- 8437:8437
swagger_api:
container_name: swagger_api
build:
context: .
args:
- SERVICE=swagger_api
ports:
- 8423:8423
observer_notifier:
build:
context: .
args:
- SERVICE=notifier
links:
- rabbit
- postgres
restart: on-failure
observer_parser:
build:
context: .
args:
- SERVICE=parser
links:
- rabbit
- postgres
restart: on-failure
observer_subscriber:
container_name: subscriber
build:
context: .
args:
- SERVICE=subscriber
links:
- rabbit
- postgres
restart: on-failure
rabbit:
container_name: rabbit
image: rabbitmq
ports:
- 5672:5672
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5672"]
interval: 30s
timeout: 10s
retries: 5
postgres:
container_name: postgres
image: postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=my_db
ports:
- 5432:5432
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5432"]
interval: 30s
timeout: 10s
retries: 5
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化