modify(dev-dbs): modify env name
This commit is contained in:
parent
beecaa6b22
commit
5d289eb395
1
dev-dbs/mysql/env.cfg
Normal file
1
dev-dbs/mysql/env.cfg
Normal file
@ -0,0 +1 @@
|
||||
IMAGE_TAG=mysql:8.3.0
|
21
dev-dbs/mysql/stack.yml
Normal file
21
dev-dbs/mysql/stack.yml
Normal file
@ -0,0 +1,21 @@
|
||||
# Pull:: docker compose --env-file ./dev-dbs/mysql/env.cfg -f ./dev-dbs/mysql/stack.yml pull
|
||||
# Run:: docker compose -p dev-dbs --env-file ./dev-dbs/mysql/env.cfg -f ./dev-dbs/mysql/stack.yml up -d
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.3.0
|
||||
container_name: Dev-mysql
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=Kevin%0412%Mysql
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- mysql_logs:/var/log/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
mysql_logs:
|
@ -6,8 +6,8 @@ services:
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=Kevin#0412&Mysql
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- mysql_logs:/var/log/mysql
|
||||
- percona_data:/var/lib/mysql
|
||||
- percona_logs:/var/log/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
networks:
|
||||
@ -15,5 +15,5 @@ services:
|
||||
ipv4_address: 172.22.10.206
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
mysql_logs:
|
||||
percona_data:
|
||||
percona_logs:
|
@ -7,9 +7,10 @@ services:
|
||||
container_name: Dev-postgre
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=Kevin%0412&PGSql
|
||||
- POSTGRES_PASSWORD=Kevin%0412
|
||||
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
|
||||
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- postgresql_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
|
3
dev-dbs/postgres/env.cfg
Normal file
3
dev-dbs/postgres/env.cfg
Normal file
@ -0,0 +1,3 @@
|
||||
#IMAGE_TAG=postgres:14.11-bookworm
|
||||
#IMAGE_TAG=postgres:15.6-bookworm
|
||||
IMAGE_TAG=postgres:16.2-bookworm
|
20
dev-dbs/postgres/stack.yml
Normal file
20
dev-dbs/postgres/stack.yml
Normal file
@ -0,0 +1,20 @@
|
||||
#pull:: docker compose --env-file ./dev-dbs/postgres/env.cfg -f ./dev-dbs/postgres/stack.yml pull
|
||||
#run:: docker compose -p dev-dbs --env-file ./dev-dbs/postgres/env.cfg -f ./dev-dbs/postgres/stack.yml up -d
|
||||
services:
|
||||
|
||||
postgres:
|
||||
image: ${IMAGE_TAG}
|
||||
container_name: Dev-postgre
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=Kevin0412PgSql
|
||||
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
|
||||
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- postgresql_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
volumes:
|
||||
postgresql_data:
|
Loading…
x
Reference in New Issue
Block a user