include logging driver in docker-compose

Remove parameters from start-CMD in Dockerfile
This commit is contained in:
2025-06-28 19:39:19 +02:00
parent 2c6e8e4d16
commit 29d36484f9
3 changed files with 28 additions and 3 deletions

View File

@ -39,4 +39,4 @@ WORKDIR /publish
COPY --chown=1000:1000 --from=build-env /publish .
USER 0
ENTRYPOINT ["dotnet", "/publish/API.dll"]
CMD ["-f", "-c", "-l", "/usr/share/tranga-api/logs"]
CMD [""]

View File

@ -16,6 +16,11 @@ services:
environment:
- POSTGRES_HOST=tranga-pg
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
tranga-pg:
image: postgres:latest
container_name: tranga-pg
@ -30,3 +35,8 @@ services:
retries: 5
start_period: 80s
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"

View File

@ -1,7 +1,7 @@
version: '3'
services:
tranga-api:
image: glax/tranga-api:latest
image: glax/tranga-api:Server-V2
container_name: tranga-api
volumes:
- ./Manga:/Manga
@ -14,14 +14,24 @@ services:
environment:
- POSTGRES_HOST=tranga-pg
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
tranga-website:
image: glax/tranga-website:latest
image: glax/tranga-website:Server-V2
container_name: tranga-website
ports:
- "9555:80"
depends_on:
- tranga-api
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
tranga-pg:
image: postgres:latest
container_name: tranga-pg
@ -36,3 +46,8 @@ services:
retries: 5
start_period: 80s
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"