-
-
Save gOOvER/bcd28ea5d8575bb636d4ef37e4729bca to your computer and use it in GitHub Desktop.
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
version: '2' | |
services: | |
postgresql: | |
image: 'docker.io/bitnami/postgresql:15' | |
user: "1001" | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: | |
- '/opt/containers/discourse/postgresql_data:/bitnami/postgresql' | |
networks: | |
- default | |
redis: | |
image: 'docker.io/bitnami/redis:7.0' | |
user: root | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: | |
- '/opt/containers/discourse/redis_data:/bitnami' | |
networks: | |
- default | |
discourse: | |
image: 'docker.io/bitnami/discourse:2' | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.discourse.entrypoints=http" | |
- "traefik.http.routers.discourse.rule=Host(`DOMAIN`)" | |
- "traefik.http.middlewares.discourse-https-redirect.redirectscheme.scheme=https" | |
- "traefik.http.routers.discourse.middlewares=discourse-https-redirect" | |
- "traefik.http.routers.discourse-secure.entrypoints=https" | |
- "traefik.http.routers.discourse-secure.rule=Host(`DOMAIN`)" | |
- "traefik.http.routers.discourse-secure.tls=true" | |
- "traefik.http.routers.discourse-secure.tls.certresolver=http" | |
- "traefik.http.routers.discourse-secure.service=discourse" | |
- "traefik.http.services.discourse.loadbalancer.server.port=3000" | |
- "traefik.docker.network=proxy" | |
networks: | |
- proxy | |
- default | |
depends_on: | |
- postgresql | |
- redis | |
volumes: | |
- '/opt/containers/discourse/discourse_data:/bitnami' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- POSTGRESQL_CLIENT_POSTGRES_USER=postgres | |
- POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=bitnami_discourse | |
- POSTGRESQL_CLIENT_CREATE_DATABASE_EXTENSIONS=hstore,pg_trgm | |
- DISCOURSE_HOST=DOMAIN | |
- DISCOURSE_DATABASE_HOST=postgresql | |
- DISCOURSE_DATABASE_PORT_NUMBER=5432 | |
- DISCOURSE_DATABASE_USER=postgres | |
- DISCOURSE_POSTGRESQL_PASSWORD=bitnami1 | |
- DISCOURSE_DATABASE_NAME=bitnami_discourse | |
- DISCOURSE_REDIS_HOST=redis | |
- DISCOURSE_REDIS_PORT_NUMBER=6379 | |
- DISCOURSE_USERNAME=DEIN USERNAME | |
- DISCOURSE_PASSWORD=DEIN PASSWORD | |
- DISCOURSE_EMAIL=DEINE EMAIL | |
sidekiq: | |
image: 'docker.io/bitnami/discourse:2' | |
depends_on: | |
- discourse | |
volumes: | |
- '/opt/containers/discourse/sidekiq_data:/bitnami' | |
command: '/opt/bitnami/scripts/discourse-sidekiq/run.sh' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- DISCOURSE_HOST=DOMAIN | |
- DISCOURSE_DATABASE_HOST=postgresql | |
- DISCOURSE_DATABASE_PORT_NUMBER=5432 | |
- DISCOURSE_DATABASE_USER=postgres | |
- DISCOURSE_POSTGRESQL_PASSWORD=bitnami1 | |
- DISCOURSE_DATABASE_NAME=bitnami_discourse | |
- DISCOURSE_REDIS_HOST=redis | |
- DISCOURSE_REDIS_PORT_NUMBER=6379 | |
networks: | |
- default | |
networks: | |
proxy: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment