Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...