forked from pyladies/pyladiescon-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (52 loc) · 1.4 KB
/
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
services:
postgres:
image: postgres:16
restart: always
ports:
- "5433:5432"
environment:
POSTGRES_USER: pyladiescon
POSTGRES_PASSWORD: pyladiescon
POSTGRES_DB: pyladiescon
POSTGRES_HOST_AUTH_METHOD: trust # never do this in production!
POSTGRES_FSYNC: null
healthcheck:
test: ["CMD", "pg_isready", "-U", "pyladiescon", "-d", "pyladiescon"]
interval: 1s
volumes:
- ./docker-compose/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
redis:
image: redis:7-bullseye
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 1s
web:
build:
target: dev
image: pyladiescon-portal-web:docker-compose
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
- ./media:/code/media
ports:
- "8000:8000"
environment:
DEBUG: True
DJANGO_ALLOWED_HOSTS: localhost,127.0.0.1
SECRET_KEY: verysecure
DATABASE_URL: postgresql://pyladiescon:pyladiescon@postgres:5432/pyladiescon
DJANGO_DEFAULT_FROM_EMAIL: PyLadiesCon <[email protected]>
DJANGO_EMAIL_HOST: maildev
DJANGO_EMAIL_PORT: 1025
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
maildev:
image: maildev/maildev:2.2.1
ports:
- "1080:1080"
- "1025:1025"