-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
107 lines (101 loc) · 3.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Copyright (C) 2018 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GNU Affero GPL v3 or later
version: "3"
networks:
ssl-reverse-proxy:
external: yes
services:
postgres:
image: postgres:15.2 # due to postgresql-client version 15.2 in Alpine 3.17
volumes:
- ~/.jawanndenn-docker-pgdata/:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${JAWANNDENN_POSTGRES_USER:?}
POSTGRES_PASSWORD: ${JAWANNDENN_POSTGRES_PASSWORD:?}
POSTGRES_DB: ${JAWANNDENN_POSTGRES_NAME:?}
logging:
driver: 'none'
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_READ_SEARCH
- FOWNER
- SETGID
- SETUID
restart: unless-stopped
redis:
image: redis:5-alpine
volumes:
- ~/.jawanndenn-docker-redis/:/data
logging:
driver: 'none'
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
restart: unless-stopped
jawanndenn:
depends_on:
- postgres
- redis
build: .
ports:
- 127.0.0.1:54080:54080
networks:
- default
- ssl-reverse-proxy
environment:
# KEEP IN SYNC with container "cron" below
DJANGO_SETTINGS_MODULE: jawanndenn.settings
JAWANNDENN_ALLOWED_HOSTS: ${JAWANNDENN_ALLOWED_HOSTS}
JAWANNDENN_DEBUG: ${JAWANNDENN_DEBUG}
JAWANNDENN_MAX_POLLS: ${JAWANNDENN_MAX_POLLS:-1000}
JAWANNDENN_POSTGRES_HOST: postgres
JAWANNDENN_POSTGRES_PORT: 5432
JAWANNDENN_POSTGRES_NAME: ${JAWANNDENN_POSTGRES_NAME:?}
JAWANNDENN_POSTGRES_USER: ${JAWANNDENN_POSTGRES_USER:?}
JAWANNDENN_POSTGRES_PASSWORD: ${JAWANNDENN_POSTGRES_PASSWORD:?}
JAWANNDENN_REDIS_HOST: redis
JAWANNDENN_REDIS_PORT: 6379
JAWANNDENN_SECRET_KEY: ${JAWANNDENN_SECRET_KEY:?}
JAWANNDENN_SENTRY_DSN: ${JAWANNDENN_SENTRY_DSN}
JAWANNDENN_URL_PREFIX: ${JAWANNDENN_URL_PREFIX}
# KEEP IN SYNC with container "cron" below
user: 1001:1001
cap_drop:
- ALL
restart: unless-stopped
tty: true
cron:
image: ${COMPOSE_PROJECT_NAME:-jawanndenn}_jawanndenn
command: ["sh", "-c", "supercronic -sentry-dsn \"${JAWANNDENN_SENTRY_DSN}\" ~/crontab"]
depends_on:
- postgres
- redis
networks:
- default
environment:
# KEEP IN SYNC with container "jawanndenn" above
DJANGO_SETTINGS_MODULE: jawanndenn.settings
JAWANNDENN_ALLOWED_HOSTS: ${JAWANNDENN_ALLOWED_HOSTS}
JAWANNDENN_DEBUG: ${JAWANNDENN_DEBUG}
JAWANNDENN_MAX_POLLS: ${JAWANNDENN_MAX_POLLS:-1000}
JAWANNDENN_POSTGRES_HOST: postgres
JAWANNDENN_POSTGRES_PORT: 5432
JAWANNDENN_POSTGRES_NAME: ${JAWANNDENN_POSTGRES_NAME:?}
JAWANNDENN_POSTGRES_USER: ${JAWANNDENN_POSTGRES_USER:?}
JAWANNDENN_POSTGRES_PASSWORD: ${JAWANNDENN_POSTGRES_PASSWORD:?}
JAWANNDENN_REDIS_HOST: redis
JAWANNDENN_REDIS_PORT: 6379
JAWANNDENN_SECRET_KEY: ${JAWANNDENN_SECRET_KEY:?}
JAWANNDENN_SENTRY_DSN: ${JAWANNDENN_SENTRY_DSN}
JAWANNDENN_URL_PREFIX: ${JAWANNDENN_URL_PREFIX}
# KEEP IN SYNC with container "jawanndenn" above
user: 1001:1001
cap_drop:
- ALL
restart: unless-stopped
tty: true