Skip to content

Commit baf070e

Browse files
authored
Merge pull request #617 from SMores/docker-logging
Logging and Configurable Postgres settings (docker-compose)
2 parents cac14e0 + 5a7f99b commit baf070e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docker/production/docker-compose.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ services:
1212
volumes:
1313
- db:/var/lib/postgresql/data
1414
environment:
15-
POSTGRES_USER: mat
16-
POSTGRES_DB: mutualaidtompkins
15+
POSTGRES_USER: ${POSTGRES_USER:-ma}
16+
POSTGRES_DB: ${POSTGRES_DB:-mutualaid}
1717
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
18+
logging:
19+
driver: json-file
20+
options:
21+
max-size: "200k"
22+
max-file: "10"
1823
app:
1924
build:
2025
context: ../..
@@ -39,6 +44,11 @@ services:
3944
SECRET_KEY_BASE: "${SECRET_KEY_BASE}"
4045
volumes:
4146
- "public:/usr/src/app/public"
47+
logging:
48+
driver: json-file
49+
options:
50+
max-size: "200k"
51+
max-file: "10"
4252
caddy:
4353
image: caddy
4454
volumes:
@@ -51,3 +61,8 @@ services:
5161
restart: always
5262
depends_on:
5363
- app
64+
logging:
65+
driver: json-file
66+
options:
67+
max-size: "200k"
68+
max-file: "10"

0 commit comments

Comments
 (0)