-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (55 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
57 lines (55 loc) · 1.82 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
services:
app:
build:
context: .
args:
IMAGE: ghcr.io/nationalarchives/tna-python-dev
IMAGE_TAG: preview
command: ["tna-wsgi", "main:app", "--reload"]
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- redis
environment:
- FLASK_APP=main:app
- ENVIRONMENT_NAME=localhost
- ALLOW_INSECURE=true
- CONFIG=config.Develop
- DEBUG=true
- SECRET_KEY=abc123
- NPM_DEVELOP_COMMAND=dev
- WAGTAIL_API_URL=https://dev-wagtail.nationalarchives.gov.uk/api/v2
- WAGTAIL_API_KEY
- API_UNTHROTTLED_HEADER
- WAGTAIL_SITE_HOSTNAME=tna.preservation.mirrorweb.today
- CACHE_REDIS_URL=redis://redis:6379/0
- COOKIE_DOMAIN=localhost
- CSP_IMG_SRC='self',localhost:8000,localhost:65529,*.google-analytics.com,*.gstatic.com,*.nationalarchives.gov.uk,i.ytimg.com,img.youtube.com,maps.googleapis.com
- CSP_SCRIPT_SRC='self',*.youtube.com,localhost:65529
- CSP_STYLE_SRC='self',fonts.googleapis.com,p.typekit.net,use.typekit.net
- CSP_FONT_SRC='self',fonts.gstatic.com,use.typekit.net
- CSP_CONNECT_SRC='self',localhost:65529,*.google-analytics.com,*.analytics.google.com,noembed.com,sentry.io
- CSP_MEDIA_SRC='self',localhost:8000
- CSP_WORKER_SRC='self',blob:,localhost:65497
- CSP_FRAME_SRC='self',*.youtube-nocookie.com,https://www.openstreetmap.org
- CSP_FEATURE_PICTURE_IN_PICTURE='self',https://www.youtube-nocookie.com
- CSP_FRAME_ANCESTORS=localhost:8000
ports:
- 65500:8080
volumes:
- ./:/app
healthcheck:
start_period: 10s
start_interval: 2s
docs:
image: squidfunk/mkdocs-material
volumes:
- .:/docs
ports:
- 65499:8000
redis:
image: redis:6
expose:
- 6379
logging:
driver: none