Unverified Commit 07b4ac62 authored by Tom Moulard's avatar Tom Moulard Committed by GitHub
Browse files

Split: splitting main docker-compose configuration file

parents ff0c2453 b2e32313
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -15,3 +15,8 @@ jobs:
      - uses: actions/checkout@v2
      - name: Run tests
        run: ./test.sh
      - uses: actions/upload-artifact@v1
        if: failure()
        with:
          name: logs
          path: log.log
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@
blog/blog*
blog/nginx/conf/www
gitlab/logs
portainer
portainer/data
+7 −1
Original line number Diff line number Diff line
# Server configuration

![Docker](https://github.com/tomMoulard/make-my-server/workflows/Docker/badge.svg)
## Setup
```bash
docker-compose ()
{
    docker-compose $(find . -name "docker-compose*.yml" -type f -exec printf " -f {}" \; 2>/dev/null) $@
}
SITE=tom.moulard.org docker-compose up -d
```

@@ -14,6 +18,8 @@ cp .env.default .env

and edit the file to use the correct site url.

The `docker-compose` function gather all docker-compose files in order to have the whole configuration in one place (`docker-compose config`).

### Tear down
```bash
docker-compose down
+12 −0
Original line number Diff line number Diff line
version: '2'

services:
  arachni:
    image: arachni/arachni
    networks:
      - 'srv'
    restart: always
    labels:
      - 'traefik.enable=true'
      - 'traefik.frontend.rule=Host:arachni.${SITE}'
      - 'traefik.port=9292'
+25 −0
Original line number Diff line number Diff line
version: '2'

services:
  bazarr:
    image: linuxserver/bazarr:v0.8.3.4-ls61
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Paris
    volumes:
      - ./bazarr/config:/config
      - ./bazarr/movies:/movies
      - ./bazarr/tv:/tv
    links:
      - transmission
      - jackett
      - sonarr
    networks:
      - 'srv'
    restart: always
    labels:
      - 'traefik.enable=true'
      - 'traefik.frontend.rule=Host:bazarr.${SITE}'
      - 'traefik.port=8080'
      - 'traefik.frontend.auth.basic.users=${USERS}'
Loading