123456789101112131415161718192021222324252627282930313233343536373839 |
- version: '2'
-
- services:
- postgresql:
- build: ./postgresql
- container_name: gogs-postgresql
- # restart: unless-stopped
- networks:
- gogs.internal.docker:
- aliases:
- - postgresql.gogs.internal.docker
- volumes:
- - ./data/postgresql/data:/var/lib/postgresql/data
- - ./data/postgresql/backup:/var/lib/postgresql/backup
- ports:
- - "127.0.0.1:35030:5432"
- env_file:
- - env
-
- gogs:
- build: ./gogs
- container_name: gogs-gogs
- # restart: unless-stopped
- networks:
- gogs.internal.docker:
- aliases:
- - gogs.gogs.internal.docker
- volumes:
- - ./data/gogs/logs:/app/gogs/log
- - ./data/gogs/conf:/data/gogs/conf
- - ./data/gogs/git:/data/git
- ports:
- - "127.0.0.1:35021:22"
- - "127.0.0.1:35022:3000"
- env_file:
- - env
-
- networks:
- gogs.internal.docker:
|