Update docker-compose.yaml

I delete version because is deprecated/obsolete
I added "restart" because help to not start the container every boot
I added also comment to explain how ports work in docker, this help when port 3001 is already used, and need to change for other
This commit is contained in:
Gabriel Zuñiga
2024-09-25 16:23:02 -03:00
committed by GitHub
parent 4c1aabacbf
commit b2eaef3fa8

View File

@@ -1,9 +1,12 @@
version: "3"
services:
send2ereader:
build:
context: .
dockerfile: ./Dockerfile
container_name: send2ereader
# Restart means, Automatic re-start the container after a shutdown unless manual stop container
restart: unless-stopped
# ports means, Bind external and internal docker ports, only change the external port, not the internal port
# Arquitecture: <External Port>:<Internal Port>
ports:
- 3001:3001