-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actualizamos repositorio con servicios
- Loading branch information
Showing
17 changed files
with
473 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
url=https://ghost.tuservidor.es |
Oops, something went wrong.