2021-09-08 00:03:12 +02:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
2023-01-02 15:59:03 +01:00
|
|
|
nats:
|
|
|
|
image: bitnami/nats
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 4222:4222
|
|
|
|
- 8222:8222
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
|
2022-12-31 14:07:30 +01:00
|
|
|
cache:
|
2022-12-31 14:43:42 +01:00
|
|
|
image: ghcr.io/discordnova/nova/cache
|
2023-01-02 15:59:03 +01:00
|
|
|
restart: always
|
2022-12-31 14:07:30 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- COMPONENT=cache
|
2023-01-02 15:59:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/default.yml
|
|
|
|
environment:
|
|
|
|
- RUST_LOG=info
|
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
- redis
|
|
|
|
|
2022-12-31 14:43:42 +01:00
|
|
|
gateway:
|
|
|
|
image: ghcr.io/discordnova/nova/gateway
|
2023-01-02 15:59:03 +01:00
|
|
|
restart: always
|
2022-12-31 14:43:42 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- COMPONENT=gateway
|
2023-01-02 15:59:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/default.yml
|
|
|
|
environment:
|
|
|
|
- RUST_LOG=info
|
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
ports:
|
|
|
|
- 9000:9000
|
|
|
|
|
2022-12-31 14:43:42 +01:00
|
|
|
rest:
|
|
|
|
image: ghcr.io/discordnova/nova/rest
|
2023-01-02 15:59:03 +01:00
|
|
|
restart: always
|
2022-12-31 14:43:42 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- COMPONENT=rest
|
2023-01-02 15:59:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/default.yml
|
|
|
|
environment:
|
|
|
|
- RUST_LOG=info
|
|
|
|
depends_on:
|
|
|
|
- ratelimit
|
|
|
|
ports:
|
|
|
|
- 9001:9000
|
|
|
|
- 8080:8080
|
|
|
|
|
2022-12-31 14:43:42 +01:00
|
|
|
webhook:
|
|
|
|
image: ghcr.io/discordnova/nova/webhook
|
2023-01-02 15:59:03 +01:00
|
|
|
restart: always
|
2022-12-31 14:43:42 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- COMPONENT=webhook
|
2023-01-02 15:59:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/default.yml
|
|
|
|
environment:
|
|
|
|
- RUST_LOG=info
|
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
ports:
|
|
|
|
- 9002:9000
|
|
|
|
- 8081:8080
|
|
|
|
ratelimit:
|
|
|
|
image: ghcr.io/discordnova/nova/ratelimit
|
|
|
|
restart: always
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- COMPONENT=ratelimit
|
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/default.yml
|
|
|
|
environment:
|
|
|
|
- RUST_LOG=info
|
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
- redis
|
|
|
|
ports:
|
|
|
|
- 9003:9000
|
|
|
|
- 8082:8080
|