Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
d2jvkpn committed Jan 2, 2025
1 parent 47b9ff8 commit 9ae2d48
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions container/nginx-app/compose.template.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
version: "3"
# networks:
# net: { name: nginx-app, driver: bridge, external: false }

services:
nginx-app:
image: registry.cn-shanghai.aliyuncs.com/d2jvkpn/nginx-app:latest
container_name: nginx-app
restart: always
user: "${USER_UID}:${USER_GID}"
network_mode: bridge
network_mode: host
# networks: ["net"]
ports: ["${HTTP_Port}:80"]
working_dir: /app
volumes:
- ./static/:/app/static
# - ./htpasswd:/opt/nginx/htpasswd
environment: ["PORT=80"]

# networks:
# net: { name: nginx-app, driver: bridge, external: false }
environment:
PORT: "80"
TZ: Asia/Shanghai
#command: ["nginx", "-g", "daemon off;"]

0 comments on commit 9ae2d48

Please sign in to comment.