2022-10-01 23:12:35 +02:00
|
|
|
version: "3.9"
|
|
|
|
|
2022-10-03 04:39:00 +02:00
|
|
|
volumes:
|
|
|
|
kdb_prod_1:
|
|
|
|
kdb_staging_1:
|
2022-10-03 15:27:24 +02:00
|
|
|
kdb_db_1:
|
|
|
|
kdb_db_2:
|
2022-10-03 04:39:00 +02:00
|
|
|
|
2022-10-01 23:12:35 +02:00
|
|
|
services:
|
2022-10-02 23:23:26 +02:00
|
|
|
kdb_prod_1:
|
2022-10-03 15:27:24 +02:00
|
|
|
image: kdb/kdb:0.2.1
|
2022-10-03 04:39:00 +02:00
|
|
|
container_name: kdb_prod_1
|
2022-10-01 23:12:35 +02:00
|
|
|
depends_on:
|
|
|
|
- kdb_db_1
|
2022-10-03 04:39:00 +02:00
|
|
|
volumes:
|
|
|
|
- kdb_prod_1:/app
|
2022-10-01 23:12:35 +02:00
|
|
|
environment:
|
2022-10-02 23:23:26 +02:00
|
|
|
KDB_ENVIRONMENT: "production"
|
2022-10-01 23:12:35 +02:00
|
|
|
KDB_TOKEN: ""
|
|
|
|
KDB_PREFIX: "!k "
|
2022-10-06 16:07:09 +02:00
|
|
|
restart: 'no'
|
2022-10-01 23:12:35 +02:00
|
|
|
|
2022-10-02 23:23:26 +02:00
|
|
|
kdb_staging_1:
|
2022-10-03 15:27:24 +02:00
|
|
|
image: kdb/kdb:0.2.1
|
2022-10-03 04:39:00 +02:00
|
|
|
container_name: kdb_staging_1
|
2022-10-02 23:23:26 +02:00
|
|
|
depends_on:
|
|
|
|
- kdb_db_1
|
2022-10-03 04:39:00 +02:00
|
|
|
volumes:
|
|
|
|
- kdb_staging_1:/app
|
2022-10-02 23:23:26 +02:00
|
|
|
environment:
|
|
|
|
KDB_ENVIRONMENT: "staging"
|
|
|
|
KDB_TOKEN: ""
|
|
|
|
KDB_PREFIX: "!kt "
|
2022-10-06 16:07:09 +02:00
|
|
|
restart: 'no'
|
2022-10-02 23:23:26 +02:00
|
|
|
|
2022-10-01 23:12:35 +02:00
|
|
|
kdb_db_1:
|
|
|
|
image: mysql:latest
|
|
|
|
container_name: kdb_db_1
|
|
|
|
command: mysqld --default-authentication-plugin=mysql_native_password
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "kd_kdb"
|
|
|
|
MYSQL_USER: "kd_kdb"
|
|
|
|
MYSQL_PASSWORD: "kd_kdb"
|
|
|
|
MYSQL_DATABASE: "kd_kdb"
|
|
|
|
ports:
|
2022-10-02 23:23:26 +02:00
|
|
|
- "3307:3306"
|
2022-10-03 15:27:24 +02:00
|
|
|
volumes:
|
|
|
|
- kdb_db_1:/var/lib/mysql
|
2022-10-02 23:23:26 +02:00
|
|
|
|
|
|
|
kdb_db_2:
|
|
|
|
image: mysql:latest
|
|
|
|
container_name: kdb_db_2
|
|
|
|
command: mysqld --default-authentication-plugin=mysql_native_password
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "kd_kdb"
|
|
|
|
MYSQL_USER: "kd_kdb"
|
|
|
|
MYSQL_PASSWORD: "kd_kdb"
|
|
|
|
MYSQL_DATABASE: "kd_kdb"
|
|
|
|
ports:
|
2022-10-03 15:27:24 +02:00
|
|
|
- "3308:3306"
|
|
|
|
volumes:
|
|
|
|
- kdb_db_2:/var/lib/mysql
|