forked from data.coop/ansible
Clean up gitea docker
This commit is contained in:
parent
ea8804d31c
commit
e30f05d3e4
|
@ -8,42 +8,19 @@
|
||||||
docker_volume:
|
docker_volume:
|
||||||
name: gitea
|
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
|
- name: gitea container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: gitea
|
name: gitea
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
restart_policy: always
|
restart_policy: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
- name: external_services
|
- name: external_services
|
||||||
volumes:
|
volumes:
|
||||||
- gitea:/data
|
- gitea:/data
|
||||||
published_ports:
|
published_ports:
|
||||||
- "222:22"
|
- "22:22"
|
||||||
env:
|
env:
|
||||||
VIRTUAL_HOST: "{{ gitea.domain }}"
|
VIRTUAL_HOST: "{{ gitea.domain }}"
|
||||||
LETSENCRYPT_HOST: "{{ gitea.domain }}"
|
LETSENCRYPT_HOST: "{{ gitea.domain }}"
|
||||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
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