-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (67 loc) · 1.92 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
version: '3.7'
services:
web:
build:
context: .
args:
BUILD_ENV: dev
init: true
environment:
ALLOWED_HOSTS: 127.0.0.1,0.0.0.0,localhost
DATABASE_URL: postgres://wagtail:wagtail@db:5432/wagtail # pragma: allowlist secret
DJANGO_SETTINGS_MODULE: website.settings.dev
MEDIA_DIR: /app/media/
RECAPTCHA_PRIVATE_KEY: UPDATE_THIS # pragma: allowlist secret
RECAPTCHA_PUBLIC_KEY: UPDATE_THIS
REDIS_URL: redis://redis
SECRET_KEY: local_dev_secret_key
SECURE_SSL_REDIRECT: 'false'
STATIC_DIR: /app/static/
STATIC_URL: /static/
command: tail -f /dev/null # do nothing forever - exec commands elsewhere
ports:
- 8000:8000 # runserver
volumes:
- ./README.md:/app/README.md:delegated,ro
- ./docs:/app/docs:delegated,ro
- ./manage.py:/app/manage.py:delegated,ro
- ./website:/app/website:delegated,rw
- ./media:/app/media:delegated,rw
- ./poetry.lock:/app/poetry.lock:rw
- ./pyproject.toml:/app/pyproject.toml:rw
- ./website/static_compiled:/app/website/static_compiled:rw
- ./public:/app/public:delegated,ro
depends_on:
- db
- redis
utils:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile.utils
tty: true
volumes:
- ./media:/app/media:delegated,rw
- ./database_dumps:/app/database_dumps:delegated,rw
command: tail -f /dev/null
db:
image: postgres:12.3
expose:
- 5432
environment:
POSTGRES_DB: wagtail
POSTGRES_USER: wagtail
POSTGRES_PASSWORD: wagtail # pragma: allowlist secret
PGDATABASE: wagtail
PGUSER: wagtail
PGPASSWORD: wagtail # pragma: allowlist secret
POSTGRES_HOST_AUTH_METHOD: trust
logging:
driver: none
volumes:
- ./database_dumps:/app/database_dumps:delegated,rw
redis:
image: redis:3.0
expose:
- 6379
logging:
driver: none