app-store/apps/codex-docs/docker-compose.yml

35 lines
1.2 KiB
YAML
Raw Normal View History

2023-02-28 00:21:35 +00:00
version: "3.2"
services:
codex-docs:
image: ghcr.io/codex-team/codex.docs:v2
ports:
- ${APP_PORT}:3000
restart: unless-stopped
environment:
- APP_CONFIG_auth_password=${APP_CONFIG_auth_password}
- APP_CONFIG_auth_secret=${APP_CONFIG_auth_secret}
- APP_CONFIG_database_driver=mongodb
- APP_CONFIG_database_mongodb_uri=mongodb://tipi:${mongoPassword}@codex-mongo: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:
traefik.enable: ${APP_EXPOSED}
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
2023-02-28 00:36:58 +00:00
traefik.http.services.codex-docs.loadbalancer.server.port: 3000
2023-02-28 00:21:35 +00:00
codex-mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: tipi
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
networks:
2023-02-28 00:26:57 +00:00
- tipi_main_network