generated from nationalarchives/flask-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.29 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
services:
app:
build:
context: .
args:
IMAGE: ghcr.io/nationalarchives/tna-python
IMAGE_TAG: preview
environment:
- ENVIRONMENT=develop
- CONFIG=config.Develop
- SECRET_KEY=abc123
- NPM_DEVELOP_COMMAND=dev
- COOKIE_DOMAIN=localhost
- CSP_STYLE_SRC='self',fonts.googleapis.com,p.typekit.net,use.typekit.net
- CSP_FONT_SRC='self',fonts.gstatic.com,use.typekit.net
- DB_HOST=db
- DB_NAME=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SITEMAPS=https://www.nationalarchives.gov.uk/sitemap.xml,https://develop.tna.dblclk.dev/sitemap.xml,https://blog.nationalarchives.gov.uk/sitemap_index.xml,https://nationalarchives.github.io/design-system/sitemap.xml
- POPULATE_ON_STARTUP=False
- WEBARCHIVE_REWRITE_DOMAINS=blog.nationalarchives.gov.uk
ports:
- 65525:8080
depends_on:
- db
volumes:
- ./:/app
db:
image: postgres:17
environment:
- POSTGRES_PASSWORD=postgres
adminer:
image: adminer
restart: always
ports:
- 65523:8080
dev:
image: ghcr.io/nationalarchives/tna-python-dev:preview
volumes:
- ./:/app
docs:
image: squidfunk/mkdocs-material
volumes:
- .:/docs
ports:
- 65524:8000