Fixed docker crazy stuff
This commit is contained in:
parent
bf5003f100
commit
7c0e34e1f8
@ -3,10 +3,12 @@ version: "3.9"
|
|||||||
volumes:
|
volumes:
|
||||||
kdb_prod_1:
|
kdb_prod_1:
|
||||||
kdb_staging_1:
|
kdb_staging_1:
|
||||||
|
kdb_db_1:
|
||||||
|
kdb_db_2:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
kdb_prod_1:
|
kdb_prod_1:
|
||||||
image: kdb
|
image: kdb/kdb:0.2.1
|
||||||
container_name: kdb_prod_1
|
container_name: kdb_prod_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_db_1
|
||||||
@ -19,7 +21,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
kdb_staging_1:
|
kdb_staging_1:
|
||||||
image: kdb
|
image: kdb/kdb:0.2.1
|
||||||
container_name: kdb_staging_1
|
container_name: kdb_staging_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_db_1
|
||||||
@ -43,6 +45,8 @@ services:
|
|||||||
MYSQL_DATABASE: "kd_kdb"
|
MYSQL_DATABASE: "kd_kdb"
|
||||||
ports:
|
ports:
|
||||||
- "3307:3306"
|
- "3307:3306"
|
||||||
|
volumes:
|
||||||
|
- kdb_db_1:/var/lib/mysql
|
||||||
|
|
||||||
kdb_db_2:
|
kdb_db_2:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
@ -55,4 +59,6 @@ services:
|
|||||||
MYSQL_PASSWORD: "kd_kdb"
|
MYSQL_PASSWORD: "kd_kdb"
|
||||||
MYSQL_DATABASE: "kd_kdb"
|
MYSQL_DATABASE: "kd_kdb"
|
||||||
ports:
|
ports:
|
||||||
- "3308:3306"
|
- "3308:3306"
|
||||||
|
volumes:
|
||||||
|
- kdb_db_2:/var/lib/mysql
|
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM python:3.10.7-buster
|
FROM python:3.10.7-bullseye
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./dist/bot/build/ .
|
COPY ./dist/bot/build/ .
|
||||||
|
@ -38,11 +38,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DatabaseSettings": {
|
"DatabaseSettings": {
|
||||||
"Host": "37.120.162.78",
|
"Host": "kdb_db_1",
|
||||||
"User": "kd_kdb",
|
"User": "kd_kdb",
|
||||||
"Password": "a2Rfa2Ri",
|
"Password": "a2Rfa2Ri",
|
||||||
"Database": "kd_kdb",
|
"Database": "kd_kdb",
|
||||||
"Port": "3307",
|
"Port": "3306",
|
||||||
"Charset": "utf8mb4",
|
"Charset": "utf8mb4",
|
||||||
"UseUnicode": "true",
|
"UseUnicode": "true",
|
||||||
"Buffered": "true",
|
"Buffered": "true",
|
||||||
|
@ -38,11 +38,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DatabaseSettings": {
|
"DatabaseSettings": {
|
||||||
"Host": "37.120.162.78",
|
"Host": "kdb_db_2",
|
||||||
"User": "kd_kdb",
|
"User": "kd_kdb",
|
||||||
"Password": "a2Rfa2Ri",
|
"Password": "a2Rfa2Ri",
|
||||||
"Database": "kd_kdb",
|
"Database": "kd_kdb",
|
||||||
"Port": "3308",
|
"Port": "3306",
|
||||||
"Charset": "utf8mb4",
|
"Charset": "utf8mb4",
|
||||||
"UseUnicode": "true",
|
"UseUnicode": "true",
|
||||||
"Buffered": "true",
|
"Buffered": "true",
|
||||||
|
Loading…
Reference in New Issue
Block a user