2018-06-23 15:22:44 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gitea:
|
2018-06-24 13:17:57 +00:00
|
|
|
external_services:
|
|
|
|
external: true
|
2018-06-23 15:22:44 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2018-06-24 13:17:57 +00:00
|
|
|
- VIRTUAL_HOST=gitea.local
|
|
|
|
- VIRTUAL_PORT=3000
|
2018-06-23 15:22:44 +00:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- gitea
|
2018-06-24 13:17:57 +00:00
|
|
|
- external_services
|
2018-06-23 15:22:44 +00:00
|
|
|
volumes:
|
|
|
|
- gitea:/data
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
- "222:22"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:9.6
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
|
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea:
|
|
|
|
postgres:
|