mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
A new start
Signed-off-by: Roland <roland@learningselfreliance.com>
This commit is contained in:
commit
9b899f6fc0
135 changed files with 15764 additions and 0 deletions
72
docker-compose.yml
Normal file
72
docker-compose.yml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# Development containers, these should only be used if you are developing.
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
image: postgres:12
|
||||
environment:
|
||||
- POSTGRES_DB=wrolpi
|
||||
- POSTGRES_PASSWORD=wrolpi
|
||||
ports:
|
||||
- '54321: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'
|
||||
- './config:/opt/wrolpi/config'
|
||||
- './test:/opt/wrolpi/test'
|
||||
- './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'
|
||||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
|
||||
user: '${UID-1000}:${GID-1000}'
|
||||
|
||||
archive:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/archive/Dockerfile
|
||||
ports:
|
||||
- '8083:8080'
|
||||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'curl http://0.0.0.0:8080/' ]
|
||||
|
||||
app:
|
||||
depends_on:
|
||||
- api
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/app/Dockerfile
|
||||
ports:
|
||||
- '8082:8082'
|
||||
volumes:
|
||||
- './app:/app'
|
||||
command: 'yarn start'
|
||||
stdin_open: true
|
||||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:3000' ]
|
||||
user: '${UID-1000}:${GID-1000}'
|
||||
|
||||
web:
|
||||
depends_on:
|
||||
- app
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- ${WEB_HOST-0.0.0.0}:${WEB_PORT-8080}:80
|
||||
volumes:
|
||||
- './nginx.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' ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue