update compose template

This commit is contained in:
FuzzyGrim
2023-01-28 17:53:56 +01:00
parent 6e2892d0c8
commit a08ba21350
2 changed files with 20 additions and 23 deletions

View File

@@ -29,33 +29,31 @@ version: "3"
services:
yamtarr:
container_name: yamtarr
build:
context: .
image: ghcr.io/fuzzygrim/yamtarr
environment:
- TMDB_API=API_KEY
- MAL_API=API_KEY
- SECRET=SECRET
- TMDB_API=TMDB_API_KEY
- MAL_API=MAL_API_KEY
- SECRET=long_random_string
# Change this to your domain or IP
- ALLOWED_HOSTS=192.168.x.x, yamtarr.domain.com
- PUID=1000
- PGID=1000
volumes:
- db:/app/db
- static:/app/static
- media:/app/media
- ./db:/app/db
- assets:/app/assets
yamtarr-gateway:
container_name: yamtarr-gateway
image: nginxinc/nginx-unprivileged:1-alpine
image: ghcr.io/fuzzygrim/yamtarr-gateway
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
- static:/vol/static
- media:/vol/media
- assets:/vol
ports:
- "8080:8080"
depends_on:
- yamtarr
volumes:
db:
static:
media:
assets:
```
## Environment variables

View File

@@ -2,13 +2,13 @@ version: "3"
services:
yamtarr:
container_name: yamtarr
build:
context: .
image: ghcr.io/fuzzygrim/yamtarr
environment:
- TMDB_API=TMDB_API
- MAL_API=MAL_API
- SECRET=SECRET
- ALLOWED_HOSTS=192.168.1.1, yamtarr.domain.com
- TMDB_API=TMDB_API_KEY
- MAL_API=MAL_API_KEY
- SECRET=long_random_string
# Change this to your domain or IP
- ALLOWED_HOSTS=192.168.x.x, yamtarr.domain.com
- PUID=1000
- PGID=1000
volumes:
@@ -17,8 +17,7 @@ services:
yamtarr-gateway:
container_name: yamtarr-gateway
build:
context: ./gateway
image: ghcr.io/fuzzygrim/yamtarr-gateway
volumes:
- assets:/vol
ports: