summaryrefslogtreecommitdiff
path: root/docker-compose.yaml
blob: 2472e45e8b4dd3888137690fbd8a083f03039685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.3"
services:
  nats:
    image: bitnami/nats
    restart: always
    ports:
      - 4222:4222
      - 8222:8222
  redis:
    image: redis

  cache:
    image: ghcr.io/discordnova/nova/cache
    restart: always
    build: 
      context: .
      args:
        - COMPONENT=cache
    volumes:
      - ./config.yml:/config/default.yml
    environment:
      - RUST_LOG=info
    depends_on:
      - nats
      - redis
  
  gateway:
    image: ghcr.io/discordnova/nova/gateway
    restart: always
    build: 
      context: .
      args:
        - COMPONENT=gateway
    volumes:
      - ./config.yml:/config/default.yml
    environment:
      - RUST_LOG=info
    depends_on:
      - nats
    ports:
      - 9000:9000

  rest:
    image: ghcr.io/discordnova/nova/rest
    restart: always
    build: 
      context: .
      args:
        - COMPONENT=rest
    volumes:
      - ./config.yml:/config/default.yml
    environment:
      - RUST_LOG=info
    depends_on:
      - ratelimit
    ports:
      - 9001:9000
      - 8080:8080

  webhook:
    image: ghcr.io/discordnova/nova/webhook
    restart: always
    build: 
      context: .
      args:
        - COMPONENT=webhook
    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