Docker needs ports to have IP, not DNS for restricting access.
This commit is contained in:
parent
5382c1d27f
commit
cd660aca04
@ -23,8 +23,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- "common"
|
- "common"
|
||||||
ports:
|
ports:
|
||||||
- "localhost:3000:3000"
|
- "127.0.0.1:3000:3000"
|
||||||
- "localhost:4000:4000"
|
- "127.0.0.1:4000:4000"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
volumes:
|
volumes:
|
||||||
- "gitea:/data"
|
- "gitea:/data"
|
||||||
@ -54,7 +54,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- "common"
|
- "common"
|
||||||
ports:
|
ports:
|
||||||
- "localhost:5000:80"
|
- "127.0.0.1:5000:80"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
volumes:
|
volumes:
|
||||||
gitea:
|
gitea:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user