Add webserver for arch repo and update nextcloud config

This commit is contained in:
Paul-Henri Froidmont 2018-02-27 20:38:21 +01:00
parent 27c912a613
commit 3a028cf5c3
7 changed files with 57 additions and 3 deletions

View file

@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=arch-mirror

View file

@ -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

View file

@ -0,0 +1,2 @@
dependencies:
- nginx-proxy-docker

View 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