Last active
December 23, 2020 04:13
-
-
Save jflattery/13106ad0729c95d8917142b4f88c665c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # ../bookstack/.env | |
| DOMAIN=example.com | |
| HOSTNAME=dev01 | |
| SERVICE=bookstack | |
| FQDN=${SERVICE}.${HOSTNAME}.${DOMAIN} |
This file contains hidden or 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
| version: "3.3" | |
| services: | |
| bookstack: | |
| image: ghcr.io/linuxserver/bookstack | |
| container_name: bookstack | |
| restart: unless-stopped | |
| networks: | |
| - db | |
| - traefik | |
| environment: | |
| - APP_URL=${FQDN} | |
| - DB_HOST=db:3306 | |
| - DB_USER={A user I setup the mariadb container is up} | |
| - DB_PASS={A password I setup the mariadb container is up} | |
| - DB_DATABASE=bookstack | |
| volumes: | |
| - ./config:/config | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.${SERVICE}.rule=Host(`${FQDN}`)" | |
| - "traefik.http.routers.${SERVICE}.entrypoints=websecure" | |
| - "traefik.http.routers.${SERVICE}.tls.certresolver=myresolver" | |
| networks: | |
| db: | |
| external: | |
| name: mariadb | |
| traefik: | |
| external: | |
| name: proxy |
This file contains hidden or 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
| # ../mariadb/.env | |
| DOMAIN=example.com | |
| HOSTNAME=dev01 | |
| SERVICE=maraiadb | |
| FQDN=${SERVICE}.${HOSTNAME}.${DOMAIN} |
This file contains hidden or 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
| version: "3.3" | |
| services: | |
| mariadb: | |
| image: ghcr.io/linuxserver/mariadb | |
| container_name: mariadb | |
| restart: unless-stopped | |
| environment: | |
| TZ: America/New_York | |
| volumes: | |
| - ./config:/config | |
| ports: | |
| - 3306:3306 | |
| networks: | |
| - db | |
| phpmyadmin: | |
| image: phpmyadmin:5 | |
| container_name: phpmyadmin | |
| restart: always | |
| ports: | |
| - 8080:80 | |
| networks: | |
| - db | |
| - traefik | |
| environment: | |
| - PMA_ARBITRARY=1 | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.http.routers.${SERVICE}.rule=Host(`${FQDN}`)" | |
| - "traefik.http.routers.${SERVICE}.entrypoints=websecure" | |
| - "traefik.http.routers.${SERVICE}.tls.certresolver=myresolver" | |
| # docker network create --opt com.docker.network.bridge.name=br_mariadb mariadb | |
| # docker network create --opt com.docker.network.bridge.name=br_proxy proxy | |
| networks: | |
| db: | |
| external: | |
| name: mariadb | |
| traefik: | |
| external: | |
| name: proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment