chore: build image in docker compose

this makes it possible to run development build using Docker.
This commit is contained in:
Shishkevich D. 2025-06-13 15:25:13 +07:00 committed by GitHub
parent 4531574de3
commit 13baf77893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,10 @@
services: services:
3x-ui: 3xui:
image: ghcr.io/mhsanaei/3x-ui:latest build:
container_name: 3x-ui context: .
hostname: yourhostname dockerfile: ./Dockerfile
container_name: 3xui_app
# hostname: yourhostname <- optional
volumes: volumes:
- $PWD/db/:/etc/x-ui/ - $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/ - $PWD/cert/:/root/cert/