2023-09-27 17:21:11 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
volumes:
|
2023-10-02 08:24:20 +02:00
|
|
|
kdb_db_prod_1:
|
2023-09-27 17:21:11 +02:00
|
|
|
|
|
|
|
services:
|
2023-10-02 08:24:20 +02:00
|
|
|
kdb_bot_prod_1:
|
2023-10-03 11:04:33 +02:00
|
|
|
image: sh-edraft.de/kdb-bot:1.1.10
|
2023-10-02 09:20:33 +02:00
|
|
|
restart: unless-stopped
|
2023-10-02 08:24:20 +02:00
|
|
|
depends_on:
|
|
|
|
- kdb_db_prod_1
|
|
|
|
networks:
|
|
|
|
- kdb_prod
|
|
|
|
- reverse_proxy
|
|
|
|
volumes:
|
|
|
|
- /opt/kdb/production/bot/config:/app/bot/config
|
|
|
|
- /opt/kdb/production/bot/api_config:/app/bot_api/config
|
|
|
|
- /opt/kdb/production/bot/logs:/app/bot/logs
|
|
|
|
environment:
|
|
|
|
KDB_ENVIRONMENT: "production"
|
|
|
|
KDB_TOKEN: "OTk4MTU5NTEyNDYyNzA4Nzg2.Gx0hSB.Ouq2dfRKxLBJvHfEq8OrFBHVUF24AQrVf55coM"
|
|
|
|
KDB_PREFIX: "!k "
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
cpus: "0.5"
|
|
|
|
memory: 1024M
|
2023-09-27 17:21:11 +02:00
|
|
|
|
2023-10-02 08:24:20 +02:00
|
|
|
kdb_web_prod_1:
|
2023-10-03 11:04:33 +02:00
|
|
|
image: sh-edraft.de/kdb-web:1.1.10
|
2023-10-02 08:24:20 +02:00
|
|
|
depends_on:
|
|
|
|
- kdb_bot_prod_1
|
|
|
|
networks:
|
|
|
|
- kdb_prod
|
|
|
|
- reverse_proxy
|
|
|
|
volumes:
|
|
|
|
- /opt/kdb/production/web/config.json:/usr/share/nginx/html/assets/config.json
|
|
|
|
environment:
|
|
|
|
BOT_CONTAINER_NAME: "kdb_bot_prod_1"
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpus: "0.4"
|
|
|
|
memory: 400M
|
|
|
|
reservations:
|
|
|
|
cpus: "0.1"
|
|
|
|
memory: 20M
|
2023-09-27 17:21:11 +02:00
|
|
|
|
2023-10-02 08:24:20 +02:00
|
|
|
kdb_db_prod_1:
|
|
|
|
image: mysql:latest
|
|
|
|
command: mysqld --default-authentication-plugin=mysql_native_password --log_bin_trust_function_creators=1
|
|
|
|
networks:
|
|
|
|
- kdb_prod
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "kd_kdb"
|
|
|
|
MYSQL_USER: "kd_kdb"
|
|
|
|
MYSQL_PASSWORD: ",2#MzfN4J=7r(q,Tz3npDkCR§>VE&}7T"
|
|
|
|
MYSQL_DATABASE: "kd_kdb"
|
|
|
|
ports:
|
|
|
|
- "3307:3306"
|
|
|
|
volumes:
|
|
|
|
- kdb_db_prod_1:/var/lib/mysql
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
cpus: "0.1"
|
|
|
|
memory: 150M
|
2023-09-27 17:21:11 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
reverse_proxy:
|
|
|
|
external: true
|
|
|
|
kdb_prod:
|
|
|
|
driver: overlay
|
2023-10-02 08:24:20 +02:00
|
|
|
attachable: true
|