app-store/apps/codex-docs/docker-compose.yml
Nicolas Meienberger d713238b5c
local domain configs A-G (#676)
* feat(actual-budget): change config to support local domain

* feat(adguard): change config to support local domain

* feat(autobrr): change config to support local domain

* feat(barrage): change config to support local domain

* feat(bazarr): change config to support local domain

* feat(booksonic): change config to support local domain

* feat(bookstack): change config to support local domain

* feat(calibre-web): change config to support local domain

* feat(chatgpt-ui): change config to support local domain

* feat(chatpad): change config to support local domain

* feat(code-server): change config to support local domain

* feat(codex-docs): change config to support local domain

* feat(dailytxt): change config to support local domain

* feat(dashdot): change config to support local domain

* feat(deemix): change config to support local domain

* feat(deluge): change config to support local domain

* feat(dokuwiki): change config to support local domain

* feat(dozzle): change config to support local domain

* feat(duplicati): change config to support local domain

* feat(emulatorjs): change config to support local domain

* feat(excalidraw): change config to support local domain

* feat(filebrowser): change config to support local domain

* feat(filestash): change config to support local domain

* feat(firefly-iii): change config to support local domain

* feat(fireshare): change config to support local domain

* feat(flatnotes): change config to support local domain

* feat(freshrss): change config to support local domain

* feat(ghost): change config to support local domain

* feat(gitea): change config to support local domain

* feat(gotify): change config to support local domain

* feat(gotosocial): change config to support local domain

* feat(grafana): change config to support local domain

* feat(grav): change config to support local domain

* feat(grocy): change config to support local domain
2023-06-10 16:46:05 +02:00

56 lines
2.3 KiB
YAML

version: "3.2"
services:
codex-docs:
container_name: codex-docs
image: ghcr.io/codex-team/codex.docs:v2.1
ports:
- ${APP_PORT}:3000
restart: unless-stopped
environment:
- APP_CONFIG_auth_password=${CODEX_AUTH_PASSWORD}
- APP_CONFIG_auth_secret=${CODEX_AUTH_SECRET}
- APP_CONFIG_database_driver=mongodb
- APP_CONFIG_database_mongodb_uri=mongodb://tipi:${CODEX_DB_PASSWORD}@codex-db:27017
volumes:
- ${APP_DATA_DIR}/data/uploads:/usr/src/app/uploads
- ${APP_DATA_DIR}/data/db:/usr/src/app/db
- ${APP_DATA_DIR}/data/docs-config.yaml:/usr/src/app/docs-config.yaml
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.codex-docs-web-redirect.redirectscheme.scheme: https
traefik.http.services.codex-docs.loadbalancer.server.port: 3000
# Web
traefik.http.routers.codex-docs-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.codex-docs-insecure.entrypoints: web
traefik.http.routers.codex-docs-insecure.service: codex-docs
traefik.http.routers.codex-docs-insecure.middlewares: codex-docs-web-redirect
# Websecure
traefik.http.routers.codex-docs.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.codex-docs.entrypoints: websecure
traefik.http.routers.codex-docs.service: codex-docs
traefik.http.routers.codex-docs.tls.certresolver: myresolver
# Local domain
traefik.http.routers.codex-docs-local-insecure.rule: Host(`codex-docs.${LOCAL_DOMAIN}`)
traefik.http.routers.codex-docs-local-insecure.entrypoints: web
traefik.http.routers.codex-docs-local-insecure.service: codex-docs
traefik.http.routers.codex-docs-local-insecure.middlewares: codex-docs-web-redirect
# Local domain secure
traefik.http.routers.codex-docs-local.rule: Host(`codex-docs.${LOCAL_DOMAIN}`)
traefik.http.routers.codex-docs-local.entrypoints: websecure
traefik.http.routers.codex-docs-local.service: codex-docs
traefik.http.routers.codex-docs-local.tls: true
codex-db:
container_name: codex-db
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: tipi
MONGO_INITDB_ROOT_PASSWORD: ${CODEX_DB_PASSWORD}
networks:
- tipi_main_network