一款社区驱动的免费、高性能、高扩展顶级Web应用和API安全防护产品
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.4 KiB

6 months ago
networks:
wafnet:
name: wafnet
driver: bridge
ipam:
driver: default
config:
- gateway: 172.31.255.1
subnet: 172.31.255.0/24
driver_opts:
com.docker.network.bridge.name: wafnet
services:
uuwaf:
1 week ago
image: swr.ap-southeast-1.myhuaweicloud.com/uusec/nanqiang:latest
6 months ago
ulimits:
nproc: 65535
nofile:
soft: 102400
hard: 102400
container_name: uuwaf
restart: always
networks:
wafnet:
ports:
- "80:80"
- "443:443"
- "4443:4443"
volumes:
- wafshared:/uuwaf
command: ["/run.sh"]
environment:
- TZ=Asia/Shanghai
- UUWAF_MYSQL_PASSWORD=Safe3.WAF
links:
- wafdb
depends_on:
wafdb:
condition: service_healthy
6 months ago
wafdb:
1 week ago
image: swr.ap-southeast-1.myhuaweicloud.com/uusec/percona-server:5.7
6 months ago
container_name: wafdb
restart: always
networks:
wafnet:
volumes:
- wafshared:/docker-entrypoint-initdb.d
- wafdata:/var/lib/mysql
4 months ago
#- ./low-memory-my.cnf:/etc/mysql/my.cnf
6 months ago
environment:
- TZ=Asia/Shanghai
- INIT_ROCKSDB
- MYSQL_MAX_CONNECTIONS=512
- MYSQL_ROOT_PASSWORD=Safe3.WAF
healthcheck:
test: ["CMD", "mysqladmin", "-uroot", "-pSafe3.WAF", "ping", "-h", "127.0.0.1", "--silent"]
4 months ago
start_period: 3s
interval: 5s
timeout: 3s
4 months ago
retries: 7
6 months ago
volumes:
wafshared:
wafdata: