use long syntax in compose.yaml

This commit is contained in:
perennial
2024-09-16 23:30:27 +10:00
parent 4e86dcb7de
commit 455f562603
+10 -3
View File
@@ -8,9 +8,16 @@ services:
dockerfile: Dockerfile
init: true
ports:
# Specify `8282:8282` only if you are not using a reverse proxy
- 127.0.0.1:8282:8282
env_file: .env
# Only specify 0.0.0.0 for host_ip if you are **not** using a reverse proxy
- name: http
target: 8282
host_ip: 127.0.0.1
published: 8282
protocol: tcp
app_protocol: http
env_file:
- path: .env
required: true
restart: unless-stopped
cap_drop:
- ALL