Fixed docker crazy stuff

This commit is contained in:
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
@@ -55,4 +59,6 @@ services:
MYSQL_PASSWORD: "kd_kdb"
MYSQL_DATABASE: "kd_kdb"
ports:
- "3308:3306"
- "3308:3306"
volumes:
- kdb_db_2:/var/lib/mysql