-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.2 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
# Note: This config is not currently set up for development, it's meant mostly
# as an example for a productive deployment.
#
# This setup currently does not serve static files. In order to serve static
# files, mount the /code/interna/static directory to a directory on the host
# and configure your web server to serve these files on /static/.
#
# Additionally, you should ensure that the media files are put into a named
# volume or bind mount as well.
version: "3.9"
volumes:
interna-data:
services:
db:
image: docker.io/postgres:14-alpine
volumes:
- interna-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U interna"]
interval: 30s
timeout: 30s
retries: 3
environment:
- POSTGRES_DB=interna
- POSTGRES_USER=interna
- POSTGRES_PASSWORD=TODO-CHANGEME
web:
build: .
ports:
- "8000:8000"
environment:
SECRET_KEY: TODO-CHANGEME
DATABASE_URL: postgres://interna:TODO-CHANGEME@db/interna
SITE_DOMAIN: http://localhost:8000
ALLOWED_HOST: localhost
SMTP_HOST: TODO-CHANGEME
SMTP_PORT: 1234
SMTP_USER: TODO-CHANGEME
SMTP_PASS: TODO-CHANGEME
depends_on:
- db