1 Star 0 Fork 347

zhongJun/APITable

forked from APITable/APITable 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.unit-test.yaml 3.99 KB
一键复制 编辑 原始数据 按行查看 历史
Troy(FengJun) 提交于 2023-05-22 16:48 . sync: hosted cloud (#840)
version: '3.9'
services:
test-mysql:
container_name: test-mysql
image: mysql:8.0.32
ports:
- '3306:3306'
networks:
- unit-test
environment:
- TZ=Asia/Singapore
- MYSQL_DATABASE=apitable_test
- MYSQL_USER=apitable
- MYSQL_PASSWORD=password
- MYSQL_ALLOW_EMPTY_PASSWORD=1
command: [ 'mysqld',
'--sql_mode=IGNORE_SPACE,NO_ENGINE_SUBSTITUTION',
'--default-authentication-plugin=mysql_native_password',
'--lower-case-table-names=1',
'--connect_timeout=600',
'--net_read_timeout=600',
'--net_write_timeout=600',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
healthcheck:
test: "mysql $$MYSQL_DATABASE -u$$MYSQL_USER -p$$MYSQL_PASSWORD -e 'SELECT 1;'"
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
test-redis:
container_name: test-redis
image: redis:7.0.8
ports:
- '6379:6379'
networks:
- unit-test
environment:
- TZ=Asia/Singapore
healthcheck:
test: [ 'CMD', 'redis-cli', '--raw', 'incr', 'ping' ]
interval: 30s
timeout: 10s
retries: 5
start_period: 5s
test-rabbitmq:
container_name: test-rabbitmq
image: rabbitmq:3.11.9-management
ports:
- '5672:5672'
networks:
- unit-test
environment:
- TZ=Asia/Singapore
- RABBITMQ_USERNAME=apitable
- RABBITMQ_PASSWORD=password
- RABBITMQ_DEFAULT_USER=apitable
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit handshake_timeout 60000
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 10s
retries: 5
start_period: 5s
test-init-db:
container_name: test-init-db
networks:
- unit-test
build:
context: ./init-db
dockerfile: ./Dockerfile
environment:
- TZ=Asia/Singapore
- ACTION=update
- DB_HOST=test-mysql
- DB_PORT=3306
- DB_NAME=apitable_test
- DB_USERNAME=apitable
- DB_PASSWORD=password
- DATABASE_TABLE_PREFIX=apitable_
unit-test-room:
container_name: unit-test-room
networks:
- unit-test
build:
context: .
dockerfile: packaging/Dockerfile.room-server
target: builder
args:
KEEP_DEV_DEP: 1
volumes:
- ./packages/room-server/coverage:/app/packages/room-server/coverage
- ./packages/room-native-api/coverage:/app/packages/room-native-api/coverage
- ./packages/room-native-api/target:/app/packages/room-native-api/target
environment:
- TZ=Asia/Singapore
- MYSQL_HOST=test-mysql
- MYSQL_PORT=3306
- MYSQL_USERNAME=apitable
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=apitable_test
- MYSQL_USE_SSL=false
- DATABASE_TABLE_PREFIX=apitable_
- REDIS_HOST=test-redis
- REDIS_PORT=6379
- REDIS_DB=4
- REDIS_PASSWORD=
- RABBITMQ_HOST=test-rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=apitable
- RABBITMQ_PASSWORD=password
- INSTANCE_COUNT=1
- APPLICATION_NAME=NEST_REST_SERVER
- ENABLE_SOCKET=false
- NODE_OPTIONS=--max-old-space-size=4096
- OSS_HOST=https://s1.vika.cn
- OSS_BUCKET=QNY1
unit-test-backend:
container_name: unit-test-backend
image: amazoncorretto:8
working_dir: /app
networks:
- unit-test
volumes:
- ./backend-server:/app
environment:
- JVM_OPTS="-Xms3200m -Xmx3200m"
- MYSQL_HOST=test-mysql
- MYSQL_PORT=3306
- MYSQL_USERNAME=apitable
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=apitable_test
- REDIS_HOST=test-redis
- REDIS_PORT=6379
- REDIS_DB=3
- REDIS_PASSWORD=
- RABBITMQ_HOST=test-rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=apitable
- RABBITMQ_PASSWORD=password
networks:
unit-test:
name: apitable-unit-test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/zjby_admin/APITable.git
git@gitee.com:zjby_admin/APITable.git
zjby_admin
APITable
APITable
develop

搜索帮助

0d507c66 1850385 C8b1a773 1850385