mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Moving FilesRefreshButton and DirectoryRefreshButton out of browser file. Moving file fetching tino FileBrowser. Removing sub-folders from Files display when any parent folder is clicked. Using closed captioning for vtt/srt file icon. Using my own react-semantic-toasts-2 to use toasts in Node 18. Fixing bug where more than the last page was displayed. Upgrading yt-dlp. Fixing sub-folder file selection. Adding rowKey to SortableTable to give React a key for each row. Renaming key to path. Removing duplicate urls. Unifying file modals. Displaying modals for image and text files. Handling refresh loading in FileBrowser. Creating refreshing_directory flag. Removing accidental commit. Sorting by url_count. Using SortableTable on Domains page. Using SortableTable for Channels page. Created new FileBrowser which allows browsing of files in the media directory. Using Node 18 in pi-gen. Creating new FileBrowser to replace outdated react-keyed-file-browser. Returning mimetype with file list. Do not display 'Do not download' on Channel download in Dashboard. Allowing null channel download frequency so user can stop downloading a channel. Bumping version for Node 18. Using my own semantic-ui-offline to avoid pulling Google fonts. Upgrading app docker container to use Node 18. This requires the removal of several npm packages. File browser will require re-write. It now pulls fonts from Google, this will need to be fixed. Testing DownloadsToggle click. Testing trinary states of DownloadsToggle. Installing @testing-library/user-event for testing App.
99 lines
2.7 KiB
YAML
99 lines
2.7 KiB
YAML
# Development containers, these should only be used if you are developing.
|
|
version: '3'
|
|
services:
|
|
db:
|
|
# https://github.com/docker-library/docs/tree/master/postgres
|
|
image: postgres:12
|
|
environment:
|
|
- POSTGRES_DB=wrolpi
|
|
- POSTGRES_PASSWORD=wrolpi
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
|
|
|
|
api:
|
|
depends_on:
|
|
- db
|
|
build:
|
|
context: .
|
|
dockerfile: docker/api/Dockerfile
|
|
volumes:
|
|
- './main.py:/opt/wrolpi/main.py'
|
|
- './wrolpi:/opt/wrolpi/wrolpi'
|
|
- './modules:/opt/wrolpi/modules'
|
|
- './test:/opt/wrolpi/test'
|
|
- './test:/media/wrolpi'
|
|
- './alembic:/opt/wrolpi/alembic'
|
|
- './alembic.ini:/opt/wrolpi/alembic.ini'
|
|
ports:
|
|
- ${REACT_APP_API-127.0.0.1:8081}:8081
|
|
command: '-vv api --host 0.0.0.0'
|
|
user: '${UID-1000}:${GID-1000}'
|
|
# healthcheck:
|
|
# test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
|
|
|
|
archive:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/archive/Dockerfile
|
|
volumes:
|
|
- './docker/archive/main.py:/app/main.py'
|
|
ports:
|
|
- '8083:8080'
|
|
healthcheck:
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8080/' ]
|
|
|
|
app:
|
|
depends_on:
|
|
- api
|
|
build:
|
|
context: .
|
|
dockerfile: docker/app/Dockerfile
|
|
volumes:
|
|
- './app/public:/app/public'
|
|
- './app/src:/app/src'
|
|
- './app/package.json:/app/package.json'
|
|
- '.env:/app/.env'
|
|
command: 'npm run start'
|
|
stdin_open: true
|
|
healthcheck:
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:3000' ]
|
|
user: '${UID-1000}:${GID-1000}'
|
|
environment:
|
|
# Force React to use nginx port to connect to it's websocket.
|
|
- WDS_SOCKET_PORT=0
|
|
|
|
map:
|
|
# https://github.com/Overv/openstreetmap-tile-server
|
|
image: overv/openstreetmap-tile-server:v1.6.0
|
|
volumes:
|
|
- 'openstreetmap-data:/var/lib/postgresql/12/main'
|
|
- 'openstreetmap-rendered-tiles:/var/lib/mod_tile'
|
|
- './modules/map/leaflet.html:/var/www/html/index.html'
|
|
- './modules/map/leaflet.js:/var/www/html/leaflet.js'
|
|
- './modules/map/leaflet.css:/var/www/html/leaflet.css'
|
|
ports:
|
|
- '8084:80'
|
|
command: 'run'
|
|
shm_size: 1g # Increase shared size to render large map tiles
|
|
|
|
web:
|
|
depends_on:
|
|
- app
|
|
image: nginx:latest
|
|
ports:
|
|
- ${WEB_HOST-0.0.0.0}:${WEB_PORT-8080}:80
|
|
volumes:
|
|
- './nginx.dev.conf:/etc/nginx/nginx.conf'
|
|
- './icon.ico:/etc/nginx/favicon.ico'
|
|
- './icon.png:/etc/nginx/icon.png'
|
|
- './test:/opt/media'
|
|
healthcheck:
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:80' ]
|
|
|
|
volumes:
|
|
openstreetmap-data:
|
|
external: true
|
|
openstreetmap-rendered-tiles:
|
|
external: true
|