feat: update

This commit is contained in:
liuyx 2024-09-02 15:19:23 +08:00
parent 992515e75e
commit b675d47426
2 changed files with 12 additions and 17 deletions

3
.env
View File

@ -4,4 +4,5 @@ COMPOSE_PROJECT_NAME=$NAME
TZ=Asia/Shanghai TZ=Asia/Shanghai
TERM=xterm-256color TERM=xterm-256color
DIR=. DIR=.
ROOT_DIR=$HOME/.u22

View File

@ -1,24 +1,18 @@
version: '3'
services: services:
app: u22:
# command: command # command: command
container_name: v2 container_name:
image: app:latest image: ubuntu:22.04
restart: always restart: always
ports: # ports:
- 3111-3222:3111-3222 # - 3111-3222:3111-3222
networks: # networks:
- local # - local
privileged: true
network_mode: host
volumes: volumes:
- ${DIR}:/etc/app - ${ROOT_DIR}:/root
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
APP_ADDRESS: 0.0.0.0:3111 APP_ADDRESS: 0.0.0.0:3111
networks:
local:
name: local
external: true