-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (113 loc) · 2.68 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
services:
db:
image: postgres:13
ports:
- "5432:5432"
volumes:
- ./setup/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./.db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=digital_workspace
- POSTGRES_PASSWORD=postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:buster
ports:
- "6379:6379"
opensearch:
image: opensearchproject/opensearch:1.3.7
ports:
- "9200:9200"
environment:
- "discovery.type=single-node"
- "bootstrap.memory_lock=true"
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
healthcheck:
test:
[
"CMD",
"curl",
"-s",
"-f",
"http://localhost:9200/_cat/health"
]
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:1.3.7
ports:
- 5601:5601
profiles:
- opensearch
environment:
- 'OPENSEARCH_HOSTS=["http://opensearch:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
depends_on:
- opensearch
wagtail:
env_file: ".env"
build:
context: .
cache_from:
- digital_workspace/wagtail:latest
image: digital_workspace/wagtail:latest
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./:/app/
ports:
- "8000:8000"
- "5678:5678"
depends_on:
- db
- redis
- opensearch
- celery
environment:
- DJANGO_SETTINGS_MODULE=config.settings.developer
stdin_open: true
tty: true
celery:
image: digital_workspace/wagtail:latest
command: celery -A config.celery worker -l INFO
volumes:
- .:/app
depends_on:
- db
- redis
environment:
- DJANGO_SETTINGS_MODULE=config.settings.developer
celery-beat:
image: digital_workspace/wagtail:latest
environment:
- DJANGO_SETTINGS_MODULE=config.settings.developer
volumes:
- .:/app
profiles:
- celery-beat
command: poetry run celery -A config.celery beat -l INFO
depends_on:
- db
- redis
playwright:
build:
context: .
dockerfile: Dockerfile.test
cache_from:
- digital_workspace/playwright:latest
image: digital_workspace/playwright:latest
command: tail -F anything # keep running until "down" command
volumes:
- ./:/app/
profiles:
- playwright
ipc: host
depends_on:
- wagtail
environment:
- DJANGO_SETTINGS_MODULE=config.settings.test
links:
- "wagtail:main"