diff --git a/.env b/.env index 1d81bba..634ec8f 100644 --- a/.env +++ b/.env @@ -4,4 +4,5 @@ COMPOSE_PROJECT_NAME=$NAME TZ=Asia/Shanghai TERM=xterm-256color -DIR=. \ No newline at end of file +DIR=. +ROOT_DIR=$HOME/.u22 \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index b68b7a2..2d74a69 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,24 +1,18 @@ -version: '3' services: - app: + u22: # command: command - container_name: v2 - image: app:latest + container_name: + image: ubuntu:22.04 restart: always - ports: - - 3111-3222:3111-3222 - networks: - - local + # ports: + # - 3111-3222:3111-3222 + # networks: + # - local + privileged: true + network_mode: host volumes: - - ${DIR}:/etc/app + - ${ROOT_DIR}:/root - /etc/localtime:/etc/localtime:ro - environment: APP_ADDRESS: 0.0.0.0:3111 -networks: - local: - name: local - external: true - -