Skip to content

Commit ec0bba0

Browse files
committed
By default connect to docker host as backup server
1 parent d40093b commit ec0bba0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docker-compose.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
version: '2.0'
1+
version: '3.0'
22
services:
33
web:
4-
image: kaitsh/gitweb
4+
image: local/gitweb
55
ports:
6-
- "30080:80"
7-
- "30022:22"
6+
- "30080:80"
7+
- "30022:22"
88
volumes:
9-
- ./env:/.env
10-
- repos:/git
9+
- ./env:/.env
10+
- repos:/git
11+
extra_hosts:
12+
- "host.docker.internal:host-gateway"
1113

1214
volumes:
1315
repos: {}

env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ BASIC_AUTH='htpassd config for nginx'
99
# Backup location/origin of the repos
1010
# New repos must also be specified here. The service will backup them every 30 seconds
1111
REPOS=""
12-
REPOS="${REPOS} user@backup_server:repo1.git"
13-
REPOS="${REPOS} user@backup_server:repo2.git"
12+
REPOS="${REPOS} user@host.docker.internal:repo1.git"
13+
REPOS="${REPOS} user@host.docker.internal:repo2.git"
1414

0 commit comments

Comments
 (0)