forked from data.coop/ansible
Clean up gitea docker
This commit is contained in:
parent
ea8804d31c
commit
e30f05d3e4
|
@ -8,42 +8,19 @@
|
|||
docker_volume:
|
||||
name: gitea
|
||||
|
||||
- name: gitea database volume
|
||||
docker_volume:
|
||||
name: gitea_db
|
||||
|
||||
- name: gitea database container
|
||||
docker_container:
|
||||
name: gitea_db
|
||||
image: postgres:10
|
||||
state: started
|
||||
restart_policy: always
|
||||
networks:
|
||||
- name: gitea
|
||||
volumes:
|
||||
- gitea_db:/var/lib/postgresql/data
|
||||
env:
|
||||
POSTGRES_DB: somethingelse
|
||||
POSTGRES_USER: gitea
|
||||
POSTGRES_PASSWORD: "{{ postgres_passwords.gitea }}"
|
||||
|
||||
- name: gitea container
|
||||
docker_container:
|
||||
name: gitea
|
||||
image: gitea/gitea:latest
|
||||
restart_policy: always
|
||||
restart_policy: unless-stopped
|
||||
networks:
|
||||
- name: gitea
|
||||
- name: external_services
|
||||
volumes:
|
||||
- gitea:/data
|
||||
published_ports:
|
||||
- "222:22"
|
||||
- "22:22"
|
||||
env:
|
||||
VIRTUAL_HOST: "{{ gitea.domain }}"
|
||||
LETSENCRYPT_HOST: "{{ gitea.domain }}"
|
||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||||
POSTGRES_HOST: gitea_db
|
||||
POSTGRES_DB: gitea
|
||||
POSTGRES_USER: gitea
|
||||
POSTGRES_PASSWORD: "{{ postgres_passwords.gitea }}"
|
||||
|
|
Loading…
Reference in a new issue