NapCat-Docker/compose/dice.yml
希亚 582f57060c update dice.yml olivos.yml sealdice.yml
About dice & olivos :

Docker images sourced from unofficial repositories. These are community-maintained images, please assess security risks before use.

The sealdice image is the official build, but since no 'latest' tag is published, please refer to https://github.com/sealdice/sealdice-build/pkgs/container/sealdice when creating containers to check and update the image name.
2025-05-23 18:59:50 +08:00

39 lines
931 B
YAML

# docker-compose.yml
# ACCOUNT=123456 NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker-compose -f ./compose/dice.yml up -d
services:
dice:
image: shiaworkshop/dice:latest
container_name: dice-main
stdin_open: true
tty: true
volumes:
- "./Dice:/app/Dice"
- "./napcat/config:/app/napcat/config"
environment:
- ACCOUNT=${ACCOUNT}
networks:
- dice_network
depends_on:
- napcat
napcat:
image: mlikiowa/napcat-docker:latest
container_name: napcat
ports:
- "6099:6099"
volumes:
- "./napcat/config:/app/napcat/config"
- "./napcat/QQ_DATA:/app/.config/QQ"
- "./Dice:/app/Dice"
environment:
- NAPCAT_UID=${NAPCAT_UID:-1000}
- NAPCAT_GID=${NAPCAT_GID:-1000}
- ACCOUNT=${ACCOUNT}
- MODE=dice
networks:
- dice_network
mac_address: "02:42:ac:11:00:02"
networks:
dice_network:
driver: bridge