fix(docker-compose.yml): run gitea on host network
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
gitea:
|
gitea:
|
||||||
external: false
|
external: false
|
||||||
@@ -14,8 +12,11 @@ services:
|
|||||||
- GITEA__database__DB_TYPE=sqlite3
|
- GITEA__database__DB_TYPE=sqlite3
|
||||||
- GITEA__server__ROOT_URL=http://localhost:3000/
|
- GITEA__server__ROOT_URL=http://localhost:3000/
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
network_mode: host
|
||||||
- gitea
|
# networks:
|
||||||
|
# - gitea
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea/data:/data
|
- ./gitea/data:/data
|
||||||
# - ./gitea/config:/data/gitea/conf
|
# - ./gitea/config:/data/gitea/conf
|
||||||
|
|||||||
Reference in New Issue
Block a user