Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Actualizamos repositorio con servicios
  • Loading branch information
juanico10 authored Sep 27, 2022
1 parent 392af2c commit 8b10d9f
Show file tree
Hide file tree
Showing 17 changed files with 473 additions and 0 deletions.
38 changes: 38 additions & 0 deletions bookstack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Installation

## Requirements

* [Traefik up and running](../traefik).
* A subdomain of your choice, this example uses `bookstack`.
* You should be able to create a subdomain with your DNS provider, use a `A record` with the same IP address as your root domain.

* Port default
```bash
bookstack:
ports:
- 8080:80
```

## Configuration

Replace the environment variables in `.env` with your own, then run :

```bash
sudo docker-compose up -d
```

You should now be able to access the bookstack setup instruction, it is quite straigthforward and nothing is required.

# Update

The image is automatically updated with [watchtower](../watchtower) thanks to the following label :

```yaml
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
```
Default credentials:
* username: [email protected]
* password: password
55 changes: 55 additions & 0 deletions bookstack/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: "3"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=${PUID}
- PGID=${GUID}
- APP_URL=${FQDN}
- DB_HOST=bookstack_db
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_DATABASE=${DB_DATABASE}
volumes:
- ./config:/config
restart: unless-stopped
depends_on:
- bookstack_db
networks:
- internal
- proxy
labels:
- traefik.enable=true
- traefik.http.services.bookstack.loadbalancer.server.port=80
- traefik.http.routers.bookstack.entrypoints=web
- traefik.http.routers.bookstack.rule=Host(`${FQDN}`)
- traefik.http.middlewares.bookstack-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.bookstack.middlewares=bookstack-https-redirect
- traefik.http.routers.bookstack-secure.entrypoints=websecure
- traefik.http.routers.bookstack-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.bookstack-secure.tls=true
- traefik.http.routers.bookstack-secure.tls.certresolver=letsencrypt

bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=${PUID}
- PGID=${GUID}
- MYSQL_ROOT_PASSWORD=${DB_PASS}
- TZ=${TZ}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASS}
volumes:
- ./config:/config
restart: unless-stopped
networks:
- internal

networks:
internal:
external: false
proxy:
external: true
7 changes: 7 additions & 0 deletions bookstack/sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PUID=1000
PGID=1000
FQDN=https://bookstack.tuservidor.es
DB_USER=bookstack
DB_PASS=contraseña
DB_DATABASE=bookstackapp
TZ=Europe/Madrid
27 changes: 27 additions & 0 deletions caddy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Installation

## Requirements

* [Traefik up and running](../traefik).
* A subdomain of your choice, this example uses `caddy`.
* You should be able to create a subdomain with your DNS provider, use a `A record` with the same IP address as your root domain.


## Configuration

Replace the environment variables in `.env` with your own, then run :

```bash
sudo docker-compose up -d
```

You should now be able to access the caddy setup instruction, it is quite straigthforward and nothing is required.

# Update

The image is automatically updated with [watchtower](../watchtower) thanks to the following label :

```yaml
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
```
23 changes: 23 additions & 0 deletions caddy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
init: true
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=proxy
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: unless-stopped

networks:
proxy:
external: true

volumes:
caddy_data: {}
26 changes: 26 additions & 0 deletions codimd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Installation

## Requirements

* [Traefik up and running](../traefik).
* A subdomain of your choice, this example uses `codimd`.
* You should be able to create a subdomain with your DNS provider, use a `A record` with the same IP address as your root domain.

## Configuration

Replace the environment variables in `.env` with your own, then run :

```bash
sudo docker-compose up -d
```

You should now be able to access the codimd setup instruction, it is quite straigthforward and nothing is required.

# Update

The image is automatically updated with [watchtower](../watchtower) thanks to the following label :

```yaml
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
```
42 changes: 42 additions & 0 deletions codimd/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: "3"
services:
codimddb:
image: postgres:11.6-alpine
env_file:
- .env
volumes:
- ./codimddb:/var/lib/postgresql/data"
restart: always
networks:
- internal
codimd:
image: hackmdio/hackmd:2.4.2-cjk
env_file:
- .env
depends_on:
- codimddb
ports:
- "3000:3000"
volumes:
- ./codimd:/home/hackmd/app/public/uploads
restart: always
networks:
- internal
- proxy
labels:
- traefik.enable=true
- traefik.http.services.codimd.loadbalancer.server.port=3000
- traefik.http.routers.codimd.entrypoints=web
- traefik.http.routers.codimd.rule=Host(`${FQDN}`)
- traefik.http.middlewares.codimd-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.codimd.middlewares=codimd-https-redirect
- traefik.http.routers.codimd-secure.entrypoints=websecure
- traefik.http.routers.codimd-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.codimd-secure.tls=true
- traefik.http.routers.codimd-secure.tls.certresolver=letsencrypt

networks:
internal:
external: false
proxy:
external: true
11 changes: 11 additions & 0 deletions codimd/sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FQDN=codimd.tuservidor.es
POSTGRES_USER=codimd
POSTGRES_PASSWORD=change_password
POSTGRES_DB=codimd
CMD_DB_URL=postgres://codimd:change_password@codimddb/codimd
CMD_USECDN=false
CMD_ALLOW_ANONYMOUS=false
CMD_ALLOW_ANONYMOUS_EDITS=false
CMD_ALLOW_ANONYMOUS_VIEWS=true
CMD_ALLOW_PDF_EXPORT=true
CMD_ALLOW_EMAIL_REGISTER=false
27 changes: 27 additions & 0 deletions dnote/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Installation

## Requirements

* [Traefik up and running](../traefik).
* A subdomain of your choice, this example uses `dnote`.
* You should be able to create a subdomain with your DNS provider, use a `A record` with the same IP address as your root domain.


## Configuration

Replace the environment variables in `.env` with your own, then run :

```bash
sudo docker-compose up -d
```

You should now be able to access the dnote setup instruction, it is quite straigthforward and nothing is required.

# Update

The image is automatically updated with [watchtower](../watchtower) thanks to the following label :

```yaml
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
```
55 changes: 55 additions & 0 deletions dnote/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: "3"

services:
postgres:
image: postgres:11-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- internal
volumes:
- ./dnote_data:/var/lib/postgresql/data
restart: always

dnote:
image: dnote/dnote:latest
environment:
GO_ENV: PRODUCTION
DBSkipSSL: "true"
DBHost: postgres
DBPort: 5432
DBName: ${POSTGRES_DB}
DBUser: ${POSTGRES_USER}
DBPassword: ${POSTGRES_PASSWORD}
WebURL: ${FQDN}
OnPremise: "true"
SmtpHost:
SmtpPort:
SmtpUsername:
SmtpPassword:
DisableRegistration: "false"
depends_on:
- postgres
restart: always
networks:
- internal
- proxy
labels:
- traefik.enable=true
- traefik.http.services.dnote.loadbalancer.server.port=3000
- traefik.http.routers.dnote.entrypoints=web
- traefik.http.routers.dnote.rule=Host(`${FQDN}`)
- traefik.http.middlewares.dnote-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.dnote.middlewares=dnote-https-redirect
- traefik.http.routers.dnote-secure.entrypoints=websecure
- traefik.http.routers.dnote-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.dnote-secure.tls=true
- traefik.http.routers.dnote-secure.tls.certresolver=letsencrypt

networks:
internal:
external: false
proxy:
external: true
4 changes: 4 additions & 0 deletions dnote/sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FQDN=https://dnote.tuservidor.es
POSTGRES_USER=dnote
POSTGRES_PASSWORD=dnote
POSTGRES_DB=dnote
27 changes: 27 additions & 0 deletions ghost/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Installation

## Requirements

* [Traefik up and running](../traefik).
* A subdomain of your choice, this example uses `ghost`.
* You should be able to create a subdomain with your DNS provider, use a `A record` with the same IP address as your root domain.


## Configuration

Replace the environment variables in `.env` with your own, then run :

```bash
sudo docker-compose up -d
```

You should now be able to access the ghost setup instruction, it is quite straigthforward and nothing is required.

# Update

The image is automatically updated with [watchtower](../watchtower) thanks to the following label :

```yaml
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
```
28 changes: 28 additions & 0 deletions ghost/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.1'

services:

ghost:
image: ghost:4-alpine
restart: unless-stopped
volumes:
- ./blog:/var/lig/ghost/content
environment:
- url=${FQDN}
labels:
- traefik.enable=true
- traefik.http.services.ghost.loadbalancer.server.port=2368
- traefik.http.routers.ghost.entrypoints=web
- traefik.http.routers.ghost.rule=Host(`${FQDN}`)
- traefik.http.middlewares.ghost-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.ghost.middlewares=ghost-https-redirect
- traefik.http.routers.ghost-secure.entrypoints=websecure
- traefik.http.routers.ghost-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.ghost-secure.tls=true
- traefik.http.routers.ghost-secure.tls.certresolver=letsencrypt
networks:
- proxy

networks:
proxy:
external: true
1 change: 1 addition & 0 deletions ghost/sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
url=https://ghost.tuservidor.es
Loading

0 comments on commit 8b10d9f

Please sign in to comment.