Gitea to listen only on host ports so as to expose ports outside only using the reverse proxy
This commit is contained in:
parent
5cda2c5eff
commit
e8ef0b252f
@ -42,7 +42,7 @@
|
|||||||
links:
|
links:
|
||||||
- "postgres:db"
|
- "postgres:db"
|
||||||
published_ports:
|
published_ports:
|
||||||
- "3000:3000"
|
- "127.0.0.1:3000:3000"
|
||||||
- "127.0.0.1:2222:22"
|
- "127.0.0.1:2222:22"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/gitea:/data
|
- /var/lib/gitea:/data
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
USER_UID: "{{ getent_passwd[user][1] }}"
|
USER_UID: "{{ getent_passwd[user][1] }}"
|
||||||
USER_GID: "{{ getent_passwd[user][2] }}"
|
USER_GID: "{{ getent_passwd[user][2] }}"
|
||||||
published_ports:
|
published_ports:
|
||||||
- "3000:3000"
|
- "127.0.0.1:3000:3000"
|
||||||
- "127.0.0.1:2222:22"
|
- "127.0.0.1:2222:22"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/gitea:/data
|
- /var/lib/gitea:/data
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# Docker on Ubuntu 18.04
|
# Gitea on Ubuntu
|
||||||
|
|
||||||
This playbook will install Docker an Ubuntu 18.04 machine, as explained in the guide on
|
This playbook will install Gitea on an Ubuntu 19.10 machine.
|
||||||
[How to Use Ansible to Install and Set Up Docker on Ubuntu 18.04](https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-install-and-set-up-docker-on-ubuntu-18-04).
|
|
||||||
A number of containers will be created with the options specified in the `vars/default.yml` variable file.
|
A number of containers will be created with the options specified in the `vars/default.yml` variable file.
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
Loading…
Reference in New Issue
Block a user