1
0
Эх сурвалжийг харах

chore: build image in docker compose

this makes it possible to run development build using Docker.
Shishkevich D. 1 өдөр өмнө
parent
commit
13baf77893
1 өөрчлөгдсөн 6 нэмэгдсэн , 4 устгасан
  1. 6 4
      docker-compose.yml

+ 6 - 4
docker-compose.yml

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