Fixed docker crazy stuff

This commit is contained in:
Sven Heidemann 2022-10-03 15:27:24 +02:00
parent bf5003f100
commit 7c0e34e1f8
4 changed files with 14 additions and 8 deletions

View File

@ -3,10 +3,12 @@ version: "3.9"
volumes:
kdb_prod_1:
kdb_staging_1:
kdb_db_1:
kdb_db_2:
services:
kdb_prod_1:
image: kdb
image: kdb/kdb:0.2.1
container_name: kdb_prod_1
depends_on:
- kdb_db_1
@ -19,7 +21,7 @@ services:
restart: unless-stopped
kdb_staging_1:
image: kdb
image: kdb/kdb:0.2.1
container_name: kdb_staging_1
depends_on:
- kdb_db_1
@ -43,6 +45,8 @@ services:
MYSQL_DATABASE: "kd_kdb"
ports:
- "3307:3306"
volumes:
- kdb_db_1:/var/lib/mysql
kdb_db_2:
image: mysql:latest
@ -56,3 +60,5 @@ services:
MYSQL_DATABASE: "kd_kdb"
ports:
- "3308:3306"
volumes:
- kdb_db_2:/var/lib/mysql

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM python:3.10.7-buster
FROM python:3.10.7-bullseye
WORKDIR /app
COPY ./dist/bot/build/ .

View File

@ -38,11 +38,11 @@
]
},
"DatabaseSettings": {
"Host": "37.120.162.78",
"Host": "kdb_db_1",
"User": "kd_kdb",
"Password": "a2Rfa2Ri",
"Database": "kd_kdb",
"Port": "3307",
"Port": "3306",
"Charset": "utf8mb4",
"UseUnicode": "true",
"Buffered": "true",

View File

@ -38,11 +38,11 @@
]
},
"DatabaseSettings": {
"Host": "37.120.162.78",
"Host": "kdb_db_2",
"User": "kd_kdb",
"Password": "a2Rfa2Ri",
"Database": "kd_kdb",
"Port": "3308",
"Port": "3306",
"Charset": "utf8mb4",
"UseUnicode": "true",
"Buffered": "true",