mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init new self-hosting method
This commit is contained in:
parent
d5791d99d5
commit
d1fde17220
11 changed files with 663 additions and 492 deletions
|
|
@ -1,17 +1,13 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
api:
|
||||
build: apps/api/.
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "1338:80"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- .:/usr/learnhouse
|
||||
environment:
|
||||
- LEARNHOUSE_COOKIE_DOMAIN=.localhost
|
||||
# This overrides the default config.yaml (optimized for docker container based development)
|
||||
- LEARNHOUSE_SQL_CONNECTION_STRING=postgresql://learnhouse:learnhouse@db:5432/learnhouse
|
||||
- LEARNHOUSE_REDIS_CONNECTION_STRING=redis://redis:6379/learnhouse
|
||||
- LEARNHOUSE_PORT=80
|
||||
env_file:
|
||||
- ./extra/example-learnhouse-conf.env
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue