adc/ansible/roles/gitea/templates/gitea-compose.yml

40 lines
827 B
YAML
Raw Normal View History

2020-05-02 19:38:08 +00:00
version: "3"
2020-04-21 02:57:51 +00:00
networks:
gitea:
external: false
services:
2020-05-02 22:55:38 +00:00
gitea-server:
2020-04-21 02:57:51 +00:00
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME={{ GITEA_DB_NAME }}
- DB_USER={{ GITEA_DB_USER }}
- DB_PASSWD={{ GITEA_DB_PASSWD }}
restart: always
networks:
- gitea
volumes:
- /mnt/volume_sfo2_01/gitea:/data
ports:
- "3000:3000"
- "222:22"
depends_on:
- db
2020-05-02 22:55:38 +00:00
gitea-db:
2020-04-21 02:57:51 +00:00
image: postgres:9.6
restart: always
environment:
- POSTGRES_USER={{ GITEA_POSTGRES_USER }}
- POSTGRES_PASSWORD={{ GITEA_POSTGRES_USER }}
- POSTGRES_DB={{ GITEA_POSTGRES_USER }}
2020-04-21 02:57:51 +00:00
networks:
- gitea
volumes:
- /mnt/volume_sfo2_01/psql:/var/lib/postgresql/data