feat: add networking and logging limits
continuous-integration/drone/push Build is passing Details

pull/24/head
Davide Polonio 2023-07-07 12:47:17 +02:00
parent eefece3173
commit b60f84ee7b
1 changed files with 30 additions and 0 deletions

View File

@ -12,6 +12,14 @@ services:
condition: service_healthy condition: service_healthy
environment: environment:
- RUN_MIGRATIONS=1 - RUN_MIGRATIONS=1
networks:
- internal
- proxy
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
db: db:
image: postgres:15-alpine image: postgres:15-alpine
restart: unless-stopped restart: unless-stopped
@ -22,6 +30,13 @@ services:
test: ["CMD", "pg_isready", "-U", "miniflux"] test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s interval: 10s
start_period: 30s start_period: 30s
networks:
- internal
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
morss: morss:
image: pictuga/morss:latest image: pictuga/morss:latest
restart: unless-stopped restart: unless-stopped
@ -38,6 +53,14 @@ services:
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 30s start_period: 30s
networks:
- internal
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes: volumes:
db: db:
driver: local driver: local
@ -45,3 +68,10 @@ volumes:
type: none type: none
o: bind o: bind
device: "/srv/docker/rss/db" device: "/srv/docker/rss/db"
networks:
internal:
ipam:
driver: default
proxy:
external: true