-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (57 loc) · 1.54 KB
/
docker-compose.yaml
File metadata and controls
60 lines (57 loc) · 1.54 KB
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
services:
app:
build:
context: .
dockerfile: ./docker/Dockerfile
command: tail -f /dev/null # Prevent the container from exiting
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
links:
- db:db
environment:
DJANGO_ALLOWED_HOSTS: localhost,127.0.0.1
DJANGO_SECRET_KEY: app-secret_key
DATABASE_URL: postgresql://postgres:password@db:5432/webapp
WAGTAIL_SITE_NAME: nickmoreton
WAGTAILADMIN_BASE_URL: http://localhost:8000
ENVIRONMENT: development
PYTHONUNBUFFERED: 1
WAGTAIL_UNVEIL_API_KEY: 1234
WAGTAIL_UNVEIL_ENABLE_PRODUCTION_REPORTS: true
WAGTAIL_UNVEIL_PLATFORM_DEPENDENCY_FILE: pyproject.toml
WAGTAIL_UNVEIL_PAGES_PER_TYPE: 1
WAGTAIL_UNVEIL_SKIP_URL_PREFIXES: django-admin
db:
image: postgres:16
environment:
POSTGRES_DB: webapp
POSTGRES_PASSWORD: password
volumes:
- dbdata:/var/lib/postgresql/data
# Mount the local directory ./db_backups to /db_backups in the container
# so that the backups can be imported/exported
- ./db_backups:/db_backups:rw
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 20s
retries: 5
adminer:
image: adminer
ports:
- 8080:8080
mailhog:
image: mailhog/mailhog
platform: linux/amd64
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
volumes:
dbdata: