forked from wagtail/wagtail.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.28 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
services:
web:
build:
context: .
target: dev
init: true
# This command just starts the container and keeps it running.
# To run a command within the container run docker-compose exec web <command>
# A Makefile task exists that starts a development server in the container: make runserver
command: tail -f /dev/null
environment:
SECRET_KEY: fake
DJANGO_SETTINGS_MODULE: wagtailio.settings.dev
DATABASE_URL: postgres://wagtailorg:wagtailorg@db:5432/wagtailorg
PRIMARY_HOST: http://localhost:8000
# The env vars get picked up by postgresql client tools (psql, pg_dump, etc)
PGHOST: db
PGUSER: wagtailorg
PGPASSWORD: wagtailorg
PGDATABASE: wagtailorg
ports:
- 8000:8000
volumes:
- .:/app/
depends_on:
db:
condition: service_healthy
db:
image: postgres:13
expose:
- 5432
environment:
POSTGRES_DB: wagtailorg
POSTGRES_USER: wagtailorg
POSTGRES_PASSWORD: wagtailorg
PGDATABASE: wagtailorg
PGUSER: wagtailorg
PGPASSWORD: wagtailorg
POSTGRES_HOST_AUTH_METHOD: trust
logging:
driver: none
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U wagtailorg']
interval: 5s
timeout: 5s
retries: 5