Created
May 26, 2018 08:12
-
-
Save MikeMichel/ff5a4100fec9d4369316c25c2e0869cf to your computer and use it in GitHub Desktop.
Discourse
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
{ | |
"project": "dis", | |
"services": [ | |
{ | |
"id": "all", | |
"apps": [ | |
{ | |
"id": "db", | |
"image": "postgres", | |
"instances": 1, | |
"mem": 1024, | |
"ssl": false, | |
"port_mappings": [ | |
{ | |
"container_port": 5432 | |
} | |
], | |
"env": { | |
"POSTGRES_PASSWORD": "password", | |
"POSTGRES_USER": "bn_discourse" | |
}, | |
"volumes": [ | |
{ | |
"container_path": "/var/lib/postgresql/data", | |
"size": "8GB" | |
} | |
], | |
"health_checks": [ | |
], | |
"logging": null | |
}, | |
{ | |
"id": "kv", | |
"image": "redis", | |
"instances": 1, | |
"mem": 256, | |
"ssl": false, | |
"port_mappings": [ | |
{ | |
"container_port": 6379 | |
} | |
], | |
"volumes": [ | |
{ | |
"container_path": "/data", | |
"size": "8GB" | |
} | |
], | |
"health_checks": [ | |
], | |
"logging": null | |
}, | |
{ | |
"id": "app", | |
"image": "bitnami/discourse", | |
"instances": 1, | |
"mem": 1024, | |
"domain": { | |
"uri": "dis.sloppy.zone" | |
}, | |
"ssl": false, | |
"port_mappings": [ | |
{ | |
"container_port": 3000 | |
} | |
], | |
"env": { | |
"POSTGRESQL_HOST": "db.all.dis", | |
"REDIS_HOST": "kv.all.dis", | |
"POSTGRESQL_ROOT_PASSWORD": "password", | |
"DISCOURSE_POSTGRESQL_PASSWORD": "password", | |
"DISCOURSE_POSTGRESQL_USERNAME": "postgres", | |
"DISCOURSE_POSTGRESQL_NAME": "postgres" | |
}, | |
"volumes": [ | |
], | |
"health_checks": [ | |
], | |
"dependencies": [ | |
"db", | |
"kv" | |
], | |
"logging": null | |
}, | |
{ | |
"id": "sk", | |
"image": "bitnami/discourse:latest", | |
"cmd": "nami start --foreground discourse-sidekiq", | |
"instances": 0, | |
"mem": 256, | |
"ssl": false, | |
"port_mappings": [ | |
{ | |
"container_port": 3000 | |
} | |
], | |
"volumes": [ | |
], | |
"health_checks": [ | |
], | |
"logging": null | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment