-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created multiple docker files and updated readme to latest version (#553
) * Created docker-compose for postgres, network_mode: host * remove backend URI from riven compose since frontend uses it. * updated compose files for sqlite and postgres remove #comments from line. * Updated Backend Readme added 2 examples SQLite and Postgres and Backend Only - updated docker-compose files for (port specific and network_mode: host * cleared double line (typo) in readme
- Loading branch information
1 parent
652671e
commit a2a2baf
Showing
2 changed files
with
177 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
services: | ||
riven-frontend: | ||
image: spoked/riven-frontend:latest | ||
container_name: riven-frontend | ||
restart: unless-stopped | ||
network_mode: host | ||
tty: true | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- ORIGIN=http://localhost:3000 | ||
- BACKEND_URL=http://127.0.0.1:8080 | ||
- TZ=Europe/Amsterdam | ||
depends_on: | ||
riven: | ||
condition: service_healthy | ||
|
||
riven: | ||
image: spoked/riven:latest | ||
container_name: riven | ||
restart: unless-stopped | ||
network_mode: host | ||
tty: true | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Europe/Amsterdam | ||
- RIVEN_DATABASE_HOST=postgresql+psycopg2://postgres:postgres@localhost/riven | ||
healthcheck: | ||
test: curl -s http://localhost:8080 >/dev/null || exit 1 | ||
interval: 30s | ||
timeout: 10s | ||
retries: 10 | ||
volumes: | ||
- ./riven-data:/riven/data | ||
- /mnt:/mnt | ||
depends_on: | ||
riven_postgres: | ||
condition: service_healthy | ||
|
||
riven_postgres: | ||
image: postgres:16.3-alpine3.20 | ||
container_name: riven-db | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: riven | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
network_mode: host |