🎉first commit

This commit is contained in:
cnphpbb 2021-08-27 14:15:37 +08:00
commit 89b2d71078
7 changed files with 162 additions and 0 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 数据源本地存储已忽略文件
/dataSources/
/dataSources.local.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/

9
.idea/deploy.stack.iml generated Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/deploy.stack.iml" filepath="$PROJECT_DIR$/.idea/deploy.stack.iml" />
</modules>
</component>
</project>

20
base/mongo.stack.yaml Normal file
View File

@ -0,0 +1,20 @@
version: '3.8'
services:
mongo:
image: hub.node:3500/mongo:4.4
container_name: dev-mongo
restart: always
ports:
- 27017:27017
volumes:
- mongo_config:/data/configdb
- mongo_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=mongopassword
command: --wiredTigerCacheSizeGB 1.5
volumes:
mongo_config:
mongo_data:

65
dev-dbs/dbs.stack.yaml Normal file
View File

@ -0,0 +1,65 @@
version: '3.8'
services:
mongo4.4:
image: hub.node:3500/mongo:4.4
container_name: "Dev-mongo4.4"
restart: always
ports:
- 27017:27017
volumes:
- mongo_config:/data/configdb
- mongo_data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=mongopassword
command: --wiredTigerCacheSizeGB 1.5
networks:
dbs-net:
ipv4_address: 172.25.0.219
redis5:
image: hub.node:3500/redis:5-alpine
container_name: "Dev-redis5"
restart: always
command: "--requirepass redispassword"
volumes:
- redis_data:/data
networks:
dbs-net:
ipv4_address: 172.25.0.209
ports:
- "6379:6379"
mysql8:
image: hub.node:3500/percona:8
container_name: "Dev-percona8"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=Daifa#Dev2020
volumes:
- mysql8_data:/var/lib/mysql
- mysql8_logs:/var/log/mysql
- ~/mydata/configs/mysql8/my.cnf:/etc/my.cnf
networks:
dbs-net:
ipv4_address: 172.25.0.251
ports:
- "3306:3306"
volumes:
mongo_config:
mongo_data:
redis_data:
mysql8_data:
mysql8_logs:
networks:
dbs-net:
name: dbs-net
driver: bridge
ipam:
driver: default
config:
- subnet: 172.25.0.0/24

View File

@ -0,0 +1,38 @@
version: '3.2'
services:
agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer-ce
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
- "8000:8000"
volumes:
- portainer_data:/data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
agent_network:
driver: overlay
attachable: true
volumes:
portainer_data:

View File

@ -0,0 +1,14 @@
version: '3.8'
services:
portainer:
image: portainer/portainer-ce:alpine
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data: