refactor: update Docker workflow and configuration for clarity and consistency
This commit is contained in:
parent
d264e05d31
commit
19f8c54b57
3
.github/workflows/docker-publish.yml
vendored
3
.github/workflows/docker-publish.yml
vendored
@ -4,10 +4,7 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
tags: [ 'v*.*.*' ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
@ -19,7 +19,7 @@ services:
|
||||
image: ghcr.io/vleeuwenmenno/auto-upnp:latest
|
||||
network_mode: host
|
||||
environment:
|
||||
- PORTS=[{"port": 80, "protocol": "tcp"}, {"port": 443, "protocol": "tcp"}]
|
||||
PORTS: [{"port": 80, "protocol": "tcp"}, {"port": 443, "protocol": "tcp"}]
|
||||
```
|
||||
|
||||
### Environment Variables
|
||||
|
@ -1,14 +1,17 @@
|
||||
name: auto-upnp
|
||||
services:
|
||||
upnp:
|
||||
# image: ghcr.io/vleeuwenmenno/auto-upnp:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/vleeuwenmenno/auto-upnp:latest
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
UPNP_DURATION: 86400 # 24 hours in seconds
|
||||
# One-liner
|
||||
# PORTS: [{"port": 80, "protocol": "tcp"}, {"port": 443, "protocol": "tcp"}]
|
||||
# Or multi-line
|
||||
PORTS: |
|
||||
[
|
||||
{"port": 7777, "protocol": "udp"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user