-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathdocker-compose.yml
85 lines (81 loc) · 3 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
version: '3'
services:
backend:
platform: linux/amd64 # Fix issues for M1 Macs
build:
target: dev
context: .
environment:
# Need to specify the SHELL env var for chokidar
- SHELL=/bin/sh
# Force polling because inotify doesn't work on Docker Windows
- CHOKIDAR_USEPOLLING=1
- CHOKIDAR_INTERVAL=2000
env_file:
- ".env"
# This command starts the Django server and the frontend build.
command: honcho -f Procfile.dev start
ports:
- "8000:8000"
- "8001:8001" # ptvsd port for debugging
volumes:
# The container already has a static copy of the application code from build time, but we are
# also mounting some files here so the container can see changes to them or write to them.
# Using rw (default) for these so linters can format them in the container.
- ./.git:/app/.git
- ./.gitignore:/app/.gitignore
- ./.env:/app/.env
- ./.coveragerc:/app/.coveragerc
- ./.flake8:/app/.flake8
- ./network-api:/app/network-api
- ./copy-db.js:/app/copy-db.js
- ./test:/app/test
- ./tests:/app/tests
- ./Procfile.dev:/app/Procfile.dev
- ./Procfile.dev-lean:/app/Procfile.dev-lean
- ./pyproject.toml:/app/pyproject.toml
- ./requirements.txt:/app/requirements.txt
- ./requirements.in:/app/requirements.in
- ./dev-requirements.txt:/app/dev-requirements.txt
- ./dev-requirements.in:/app/dev-requirements.in
# Files that we may want to include in linting (other files may require inv catchup before linting)
- ./.github:/app/.github
- ./.vscode:/app/.vscode
- ./docs:/app/docs
- ./maintenance:/app/maintenance
- ./tasks.py:/app/tasks.py
- ./README.md:/app/README.md
- ./release-steps.sh:/app/release-steps.sh
- ./translation-management.sh:/app/translation-management.sh
# Frontend config
- ./source:/app/source
- ./eslint.config.a11y.js:/app/eslint.config.a11y.js
- ./eslint.config.js:/app/eslint.config.js
- ./.editorconfig:/app/.editorconfig
- ./.prettierignore:/app/.prettierignore
- ./.prettierrc:/app/.prettierrc
- ./.stylelintrc:/app/.stylelintrc
- ./.stylelintrc-colors.js:/app/.stylelintrc-colors.js
- ./esbuild.config.js:/app/esbuild.config.js
- ./pyrightconfig.json:/app/pyrightconfig.json
- ./playwright.config.js:/app/playwright.config.js
- ./postcss.config.js:/app/postcss.config.js
- ./tailwind-plugins:/app/tailwind-plugins
- ./tailwind.config.js:/app/tailwind.config.js
- ./package-lock.json:/app/package-lock.json
- ./package.json:/app/package.json
depends_on:
- postgres
postgres:
image: postgres:15
ports:
- "5678:5432"
environment:
- POSTGRES_DB=wagtail
- POSTGRES_USER=foundation
# We're only using this setting for local dev!
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data: