Docker needs ports to have IP, not DNS for restricting access.

This commit is contained in:
Jason Rothstein 2020-04-19 21:41:37 -05:00
parent 5382c1d27f
commit cd660aca04

View File

@ -23,8 +23,8 @@ services:
networks:
- "common"
ports:
- "localhost:3000:3000"
- "localhost:4000:4000"
- "127.0.0.1:3000:3000"
- "127.0.0.1:4000:4000"
restart: "always"
volumes:
- "gitea:/data"
@ -54,7 +54,7 @@ services:
networks:
- "common"
ports:
- "localhost:5000:80"
- "127.0.0.1:5000:80"
restart: "always"
volumes:
gitea: