generated from nationalarchives/django-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.12 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
services:
app:
build:
context: .
args:
IMAGE: ghcr.io/nationalarchives/tna-python-django-root
IMAGE_TAG: preview
env_file:
- .env
environment:
- ENVIRONMENT=develop
- DJANGO_SETTINGS_MODULE=config.settings.develop
- SECRET_KEY=abc123
- NPM_DEVELOP_COMMAND=dev
- DATABASE_NAME=postgres
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DJANGO_SUPERUSER_PASSWORD=admin
- DJANGO_SUPERUSER_USERNAME=admin
- COOKIE_DOMAIN=localhost
- CSP_STYLE_SRC_ELEM='self',fonts.googleapis.com,p.typekit.net,use.typekit.net
- CSP_FONT_SRC='self',fonts.gstatic.com,use.typekit.net
- FEATURE_PHASE_BANNER=False
ports:
- 65533:8080
depends_on:
- db
volumes:
- ./:/app
db:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=postgres
dev:
image: ghcr.io/nationalarchives/tna-python-dev:preview
volumes:
- ./:/app
docs:
image: squidfunk/mkdocs-material
volumes:
- .:/docs
ports:
- 65532:8000