代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。