-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
84 lines (81 loc) · 1.84 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
services:
web:
init: true
build:
context: .
dockerfile: ./docker/Dockerfile
args:
USERID: ${UID:?err}
command:
- django-start.sh
volumes:
- ./:/app
- type: bind
source: ${HOME}/.netrc
target: /home/wagtail/.netrc
ports:
- "8000:8000"
environment:
DATABASE_URL: postgres://wagtail:test@db:5432/wagtail
SECRET_KEY: test
DJANGO_SETTINGS_MODULE: newamericadotorg.settings.dev
ELASTICSEARCH_URL: http://es:9200
REDIS_URL: redis://redis:6379/1
NEW_RECAPTCHA_SECRET_KEY:
depends_on:
- db
- es
working_dir: /app
db:
init: true
image: postgres:13.3-alpine
environment:
POSTGRES_USER: wagtail
POSTGRES_DB: wagtail
POSTGRES_PASSWORD: test
ports:
- "5432:5432"
es:
init: true
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.16
environment:
- script.inline=true
- script.search=true
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms1500m -Xmx1500m"
- discovery.type=single-node
- xpack.security.enabled=false
mem_limit: 2g
expose:
- "9200"
redis:
init: true
image: "redis:alpine"
command: redis-server
expose:
- "6379"
node:
init: true
image: node:18.20-alpine
volumes:
- ./:/app
working_dir: /app
command: /bin/ash -c "npm install && npm run dev"
celery_worker:
init: true
build:
context: .
dockerfile: ./docker/Dockerfile
args:
USERID: ${UID:?err}
command: worker-start.sh
environment:
SECRET_KEY: test
DJANGO_SETTINGS_MODULE: newamericadotorg.settings.dev
DATABASE_URL: postgres://wagtail:test@db:5432/wagtail
REDIS_URL: redis://redis:6379/1
volumes:
- .:/app
depends_on:
- redis
- db