From 4faf802d91d452c97b54772365272e76d96ded50 Mon Sep 17 00:00:00 2001 From: Safe3 Date: Tue, 15 Aug 2023 20:16:00 +0800 Subject: [PATCH] update --- docs/docker-compose.yml | 56 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/docker-compose.yml diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml new file mode 100644 index 0000000..b21828e --- /dev/null +++ b/docs/docker-compose.yml @@ -0,0 +1,56 @@ +networks: + wafnet: + name: wafnet + driver: bridge + ipam: + driver: default + config: + - gateway: 172.22.0.1 + subnet: 172.22.0.0/24 + driver_opts: + com.docker.network.bridge.name: wafnet + +services: + uuwaf: + image: uusec/nanqiang:latest + ulimits: + nproc: 65535 + nofile: + soft: 102400 + hard: 102400 + container_name: uuwaf + networks: + wafnet: + ipv4_address: 172.22.0.3 + ports: + - "80:80" + - "443:443" + - "4443:4443" + volumes: + - wafshared:/uuwaf + command: ["/run.sh"] + environment: + - TZ=Asia/Shanghai + + links: + - wafdb + depends_on: + - wafdb + + wafdb: + image: percona:8 + container_name: wafdb + networks: + wafnet: + ipv4_address: 172.22.0.7 + volumes: + - wafshared:/docker-entrypoint-initdb.d + - wafdata:/var/lib/mysql + environment: + - TZ=Asia/Shanghai + - INIT_ROCKSDB + - MYSQL_ROOT_PASSWORD=Safe3.WAF + +volumes: + wafshared: + wafdata: \ No newline at end of file