mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
Flip gitea back to links so it's on the main docker network
This commit is contained in:
parent
91725cb524
commit
a3d6781bfc
1 changed files with 3 additions and 11 deletions
|
@ -10,18 +10,11 @@
|
||||||
- "{{ gitea_data_directory }}/gitea"
|
- "{{ gitea_data_directory }}/gitea"
|
||||||
- "{{ gitea_data_directory }}/mysql"
|
- "{{ gitea_data_directory }}/mysql"
|
||||||
|
|
||||||
- name: Create gitea network
|
|
||||||
community.docker.docker_network:
|
|
||||||
name: "{{ gitea_network_name }}"
|
|
||||||
|
|
||||||
- name: Create MySQL container for Gitea
|
- name: Create MySQL container for Gitea
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: "{{ gitea_mysql_container_name }}"
|
name: "{{ gitea_mysql_container_name }}"
|
||||||
image: "{{ gitea_mysql_image_name }}:{{ gitea_mysql_image_version }}"
|
image: "{{ gitea_mysql_image_name }}:{{ gitea_mysql_image_version }}"
|
||||||
pull: true
|
pull: true
|
||||||
networks:
|
|
||||||
- name: "{{ gitea_network_name }}"
|
|
||||||
network_mode: "{{ gitea_network_name }}"
|
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ gitea_data_directory }}/mysql:/var/lib/mysql:rw"
|
- "{{ gitea_data_directory }}/mysql:/var/lib/mysql:rw"
|
||||||
env:
|
env:
|
||||||
|
@ -37,17 +30,16 @@
|
||||||
name: "{{ gitea_container_name }}"
|
name: "{{ gitea_container_name }}"
|
||||||
image: "{{ gitea_image_name }}:{{ gitea_image_version }}"
|
image: "{{ gitea_image_name }}:{{ gitea_image_version }}"
|
||||||
pull: true
|
pull: true
|
||||||
networks:
|
|
||||||
- name: "{{ gitea_network_name }}"
|
|
||||||
network_mode: "{{ gitea_network_name }}"
|
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ gitea_data_directory }}/gitea:/data:rw"
|
- "{{ gitea_data_directory }}/gitea:/data:rw"
|
||||||
ports:
|
ports:
|
||||||
- "{{ gitea_port_http }}:3000"
|
- "{{ gitea_port_http }}:3000"
|
||||||
- "{{ gitea_port_ssh }}:22"
|
- "{{ gitea_port_ssh }}:22"
|
||||||
|
links:
|
||||||
|
- gitea-mysql:db
|
||||||
env:
|
env:
|
||||||
DB_TYPE: "mysql"
|
DB_TYPE: "mysql"
|
||||||
DB_HOST: "{{ gitea_mysql_container_name }}:3306"
|
DB_HOST: "db:3306"
|
||||||
DB_NAME: "gitea"
|
DB_NAME: "gitea"
|
||||||
DB_USER: "gitea"
|
DB_USER: "gitea"
|
||||||
DB_PASSWD: "gitea"
|
DB_PASSWD: "gitea"
|
||||||
|
|
Loading…
Reference in a new issue