...
No Format |
---|
WD=/opt/git
mkdir -p $WD/{setup,data,hooks}
cd $WD/setup
cat << 'EOF' >docker-compose.yaml
version: '3.7'
services:
git:
container_name: git
image: gogs/gogs:latest
hostname: git
ports:
- '10022:22'
- '10880:3000'
volumes:
- type: bind
source: /opt/git/data/
target: /data
environment:
- 'TZ=${TZ}'
EOF
chmod +x docker-compose.yaml |
...