mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add webserver for arch repo and update nextcloud config
This commit is contained in:
parent
27c912a613
commit
3a028cf5c3
7 changed files with 57 additions and 3 deletions
2
roles/arch-mirror-docker/files/arch-mirror/.env
Normal file
2
roles/arch-mirror-docker/files/arch-mirror/.env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
COMPOSE_PROJECT_NAME=arch-mirror
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
version: '2.2'
|
||||
|
||||
networks:
|
||||
proxy-tier:
|
||||
external:
|
||||
name: nginx-proxy
|
||||
|
||||
services:
|
||||
arch-mirror:
|
||||
image: nginx:latest
|
||||
expose:
|
||||
- 80
|
||||
environment:
|
||||
- VIRTUAL_HOST=arch.banditlair.com
|
||||
- VIRTUAL_NETWORK=nginx-proxy
|
||||
- VIRTUAL_PORT=80
|
||||
volumes:
|
||||
- /srv/repo:/usr/share/nginx/html:ro
|
||||
networks:
|
||||
- proxy-tier
|
||||
restart: always
|
||||
2
roles/arch-mirror-docker/meta/main.yml
Normal file
2
roles/arch-mirror-docker/meta/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- nginx-proxy-docker
|
||||
5
roles/arch-mirror-docker/tasks/main.yml
Normal file
5
roles/arch-mirror-docker/tasks/main.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Copy Arch Linux mirror config
|
||||
copy: src=arch-mirror dest={{docker_compose_files_folder}}
|
||||
- name: Start Arch mirror project
|
||||
docker_service: project_src={{docker_compose_files_folder}}/arch-mirror state=present
|
||||
Loading…
Add table
Add a link
Reference in a new issue