mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 20:35:03 +01:00
34 lines
761 B
Django/Jinja
34 lines
761 B
Django/Jinja
version: '3'
|
|
|
|
services:
|
|
discourse:
|
|
image: discourse/base:release
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
- data:/shared
|
|
environment:
|
|
DISCOURSE_DB_HOST: database
|
|
DISCOURSE_DB_NAME: discourse
|
|
DISCOURSE_DB_USERNAME: discourse
|
|
DISCOURSE_DB_PASSWORD: {{discourse_database_password}}
|
|
DISCOURSE_REDIS_HOST: redis
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
database:
|
|
image: postgres:latest
|
|
environment:
|
|
POSTGRES_DB: discourse
|
|
POSTGRES_USER: discourse
|
|
POSTGRES_PASSWORD: {{discourse_database_password}}
|
|
volumes:
|
|
- database:/var/lib/postgresql/data
|
|
redis:
|
|
image: redis:latest
|
|
volumes:
|
|
- redis_data:/data
|
|
volumes:
|
|
database:
|
|
data:
|
|
redis_data: |