|
| 1 | +# deploying an archivebot... |
| 2 | +version: '3.8' |
| 3 | +networks: |
| 4 | + # publicly accessible network |
| 5 | + frontend: |
| 6 | + name: archivebot-frontend |
| 7 | + # stuff that needs to talk to zeromq. |
| 8 | + zeromq: |
| 9 | + name: archivebot-zeromq |
| 10 | + # redis, couchdb, and the backend services |
| 11 | + redis: |
| 12 | + name: archivebot-redis |
| 13 | + couchdb: |
| 14 | + name: archivebot-couchdb |
| 15 | +services: |
| 16 | + valkey: |
| 17 | + build: |
| 18 | + context: .. |
| 19 | + dockerfile: containers/valkey.Dockerfile |
| 20 | + volumes: |
| 21 | + - ./data/backend/valkey:/var/lib/valkey |
| 22 | + environment: |
| 23 | + - VALKEY_PASSWORD=${REDIS_PASSWORD} |
| 24 | + networks: |
| 25 | + - redis |
| 26 | + deploy: |
| 27 | + resources: |
| 28 | + limits: |
| 29 | + cpus: '1' |
| 30 | + memory: 1024M |
| 31 | + reservations: |
| 32 | + cpus: '0.05' |
| 33 | + memory: 64M |
| 34 | + couchdb: |
| 35 | + build: |
| 36 | + context: .. |
| 37 | + dockerfile: containers/couchdb.Dockerfile |
| 38 | + volumes: |
| 39 | + - ./data/backend/couchdb:/opt/couchdb/data |
| 40 | + environment: |
| 41 | + - COUCHDB_USER=${COUCHDB_USER} |
| 42 | + - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} |
| 43 | + networks: |
| 44 | + - couchdb |
| 45 | + deploy: |
| 46 | + resources: |
| 47 | + limits: |
| 48 | + cpus: '1' |
| 49 | + memory: 1024M |
| 50 | + reservations: |
| 51 | + cpus: '0.05' |
| 52 | + memory: 64M |
| 53 | + ircbot: |
| 54 | + build: |
| 55 | + context: .. |
| 56 | + dockerfile: containers/backend.Dockerfile |
| 57 | + environment: |
| 58 | + - ARCHIVEBOT_IRC_URL=${ARCHIVEBOT_IRC_URL} |
| 59 | + - ARCHIVEBOT_IRC_NICK=${ARCHIVEBOT_IRC_NICK} |
| 60 | + - ARCHIVEBOT_IRC_CHANNEL=${ARCHIVEBOT_IRC_CHANNEL} |
| 61 | + - ARCHIVEBOT_IRC_PASSWORD=${ARCHIVEBOT_IRC_PASSWORD} |
| 62 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 63 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 64 | + command: ["ircbot"] |
| 65 | + networks: |
| 66 | + - couchdb |
| 67 | + - redis |
| 68 | + - zeromq |
| 69 | + deploy: |
| 70 | + resources: |
| 71 | + limits: |
| 72 | + cpus: '1' |
| 73 | + memory: 1024M |
| 74 | + reservations: |
| 75 | + cpus: '0.05' |
| 76 | + memory: 64M |
| 77 | + updates-listener: |
| 78 | + build: |
| 79 | + context: .. |
| 80 | + dockerfile: containers/backend.Dockerfile |
| 81 | + command: ["updates-listener"] |
| 82 | + environment: |
| 83 | + - ARCHIVEBOT_ZEROMQ_BIND_URL=${ARCHIVEBOT_ZEROMQ_BIND_URL} |
| 84 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 85 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 86 | + networks: |
| 87 | + - couchdb |
| 88 | + - zeromq |
| 89 | + - redis |
| 90 | + deploy: |
| 91 | + resources: |
| 92 | + limits: |
| 93 | + cpus: '1' |
| 94 | + memory: 1024M |
| 95 | + reservations: |
| 96 | + cpus: '0.05' |
| 97 | + memory: 64M |
| 98 | + dashboard: |
| 99 | + build: |
| 100 | + context: .. |
| 101 | + dockerfile: containers/backend.Dockerfile |
| 102 | + command: ["dashboard"] |
| 103 | + environment: |
| 104 | + - ARCHIVEBOT_DASHBOARD_URL=${ARCHIVEBOT_DASHBOARD_URL} |
| 105 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 106 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 107 | + networks: |
| 108 | + - couchdb |
| 109 | + - frontend |
| 110 | + - zeromq |
| 111 | + - redis |
| 112 | + ports: |
| 113 | + - "4567:4567" |
| 114 | + deploy: |
| 115 | + resources: |
| 116 | + limits: |
| 117 | + cpus: '1' |
| 118 | + memory: 1024M |
| 119 | + reservations: |
| 120 | + cpus: '0.05' |
| 121 | + memory: 64M |
| 122 | + websocket: |
| 123 | + image: ghcr.io/iakat/archivebot-dashboard-repeater |
| 124 | + environment: |
| 125 | + - UPSTREAM=${ARCHIVEBOT_ZEROMQ_URL} |
| 126 | + ports: |
| 127 | + - "4568:4568" |
| 128 | + networks: |
| 129 | + - zeromq |
| 130 | + - frontend |
| 131 | + deploy: |
| 132 | + resources: |
| 133 | + limits: |
| 134 | + cpus: '1' |
| 135 | + memory: 1024M |
| 136 | + reservations: |
| 137 | + cpus: '0.05' |
| 138 | + memory: 64M |
| 139 | + cogs: |
| 140 | + build: |
| 141 | + context: .. |
| 142 | + dockerfile: containers/backend.Dockerfile |
| 143 | + command: ["cogs"] |
| 144 | + environment: |
| 145 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 146 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 147 | + networks: |
| 148 | + - redis |
| 149 | + - couchdb |
| 150 | + deploy: |
| 151 | + resources: |
| 152 | + limits: |
| 153 | + cpus: '1' |
| 154 | + memory: 1024M |
| 155 | + reservations: |
| 156 | + cpus: '0.05' |
| 157 | + memory: 64M |
| 158 | + analyzer: |
| 159 | + build: |
| 160 | + context: .. |
| 161 | + dockerfile: containers/backend.Dockerfile |
| 162 | + command: ["analyzer"] |
| 163 | + environment: |
| 164 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 165 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 166 | + networks: |
| 167 | + - redis |
| 168 | + - couchdb |
| 169 | + deploy: |
| 170 | + resources: |
| 171 | + limits: |
| 172 | + cpus: '1' |
| 173 | + memory: 1024M |
| 174 | + reservations: |
| 175 | + cpus: '0.05' |
| 176 | + memory: 64M |
| 177 | + trimmer: |
| 178 | + build: |
| 179 | + context: .. |
| 180 | + dockerfile: containers/backend.Dockerfile |
| 181 | + command: ["trimmer"] |
| 182 | + environment: |
| 183 | + - ARCHIVEBOT_REDIS_URL=${ARCHIVEBOT_REDIS_URL} |
| 184 | + - ARCHIVEBOT_COUCHDB_URL=${ARCHIVEBOT_COUCHDB_URL} |
| 185 | + networks: |
| 186 | + - redis |
| 187 | + - couchdb |
| 188 | + deploy: |
| 189 | + resources: |
| 190 | + limits: |
| 191 | + cpus: '1' |
| 192 | + memory: 1024M |
| 193 | + reservations: |
| 194 | + cpus: '0.05' |
| 195 | + memory: 64M |
| 196 | + openssh: |
| 197 | + networks: |
| 198 | + - redis |
| 199 | + build: |
| 200 | + context: .. |
| 201 | + dockerfile: containers/openssh.Dockerfile |
| 202 | + ports: |
| 203 | + - "922:22" |
| 204 | + command: ["openssh"] |
| 205 | + deploy: |
| 206 | + resources: |
| 207 | + limits: |
| 208 | + cpus: '0.1' |
| 209 | + memory: 64M |
| 210 | + reservations: |
| 211 | + cpus: '0.01' |
| 212 | + memory: 16M |
| 213 | + volumes: |
| 214 | + - ./data/backend/openssh:/home/pipeline/.ssh |
0 commit comments