summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBiRabittoh <birabittoh@tilde.institute>2023-07-10 02:18:21 +0200
committerBiRabittoh <birabittoh@tilde.institute>2023-07-10 02:18:21 +0200
commita981c9256c4e542b87bffc7f9228b9cc68c3c5f8 (patch)
tree29ecc0d74710f9494eeabad650c0d9f941c7cd50
downloadmy-docker-compose-a981c9256c4e542b87bffc7f9228b9cc68c3c5f8.tar.gz
Initial commit
-rw-r--r--cgit/docker-compose.yaml14
-rw-r--r--invidious/docker-compose.yaml62
-rw-r--r--swag/docker-compose.yml29
3 files changed, 105 insertions, 0 deletions
diff --git a/cgit/docker-compose.yaml b/cgit/docker-compose.yaml
new file mode 100644
index 0000000..c50612f
--- /dev/null
+++ b/cgit/docker-compose.yaml
@@ -0,0 +1,14 @@
+services:
+  cgit:
+    image: joseluisq/alpine-cgit:latest
+    container_name: cgit
+    restart: unless-stopped
+    ports:
+      - "127.0.0.1:8787:80"
+    volumes:
+      - /etc/config/cgit/:/srv/git/
+    networks:
+      - swag_default
+networks:
+  swag_default:
+    external: true
diff --git a/invidious/docker-compose.yaml b/invidious/docker-compose.yaml
new file mode 100644
index 0000000..8142ae0
--- /dev/null
+++ b/invidious/docker-compose.yaml
@@ -0,0 +1,62 @@
+version: "3.8"
+services:
+  invidious:
+    container_name: invidious
+    image: quay.io/invidious/invidious:latest
+    restart: always
+    stop_grace_period: 3s
+    ports:
+      - 127.0.0.1:3000:3000
+    environment:
+      INVIDIOUS_CONFIG: |
+        db:
+          dbname: invidious
+          user: kemal
+          password: kemal
+          host: invidious-db
+          port: 5432
+        check_tables: true
+        popular_enabled: false
+        registration_enabled: true
+        statistics_enabled: false
+        hsts: false
+        https_only: true
+        external_port: 443
+        domain: y.birabittoh.duckdns.org
+        hmac_key: 13c0d755683fee6595a89d45a36d61873e54cc16
+    healthcheck:
+      test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
+      interval: 30s
+      timeout: 5s
+      retries: 2
+    depends_on:
+      - invidious-db
+    networks:
+      - invidious
+      - swag_default
+
+  invidious-db:
+    image: postgres:14
+    container_name: invidious-db
+    restart: always
+    volumes:
+      - postgresdata:/var/lib/postgresql/data
+      - ./config/sql:/config/sql
+      - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
+    environment:
+      POSTGRES_DB: invidious
+      POSTGRES_USER: invidious
+      POSTGRES_PASSWORD: password
+    healthcheck:
+      test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
+    networks:
+      - invidious
+
+networks:
+  swag_default:
+    external: true
+  invidious:
+    name: invidious
+
+volumes:
+  postgresdata:
diff --git a/swag/docker-compose.yml b/swag/docker-compose.yml
new file mode 100644
index 0000000..5f34741
--- /dev/null
+++ b/swag/docker-compose.yml
@@ -0,0 +1,29 @@
+version: "2.1"
+services:
+    swag:
+        image: ghcr.io/linuxserver/swag
+        container_name: swag
+        cap_add:
+            - NET_ADMIN
+        environment:
+            - PUID=1000
+            - PGID=1000
+            # valid TZs at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
+            - TZ=Europe/Rome
+            - URL=birabittoh.duckdns.org
+            - SUBDOMAINS=wildcard
+            - VALIDATION=duckdns
+            - CERTPROVIDER= #optional
+            - DNSPLUGIN= #optional
+            - DUCKDNSTOKEN=d6b922e5-979e-4622-9a11-d3c1e247aa4c
+            - EMAIL=birabittoh@duck.com #optional
+            - ONLY_SUBDOMAINS=false #optional
+            - EXTRA_DOMAINS=y #optional
+            - STAGING=false #optional
+        volumes:
+            - /etc/config/swag:/config
+        ports:
+            - 443:443
+            - 80:80
+        restart: unless-stopped
+