-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.override.yml
74 lines (65 loc) · 1.76 KB
/
docker-compose.override.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
version: "3.8"
services:
celery:
user: root
volumes:
- ./backend:/app
- ./.config/scripts/wait-for-it.sh:/usr/local/bin/wait-for-it.sh
celery_beat:
volumes:
- ./backend:/app
- ./.config/scripts/wait-for-it.sh:/usr/local/bin/wait-for-it.sh
cypress:
# https://github.com/cypress-io/cypress-docker-images
image: "cypress/included:8.4.1"
# depends_on:
# webserver:
# condition: service_healthy
environment:
- CYPRESS_baseUrl=http://modularhistory.dev.net:8080/
working_dir: /e2e
volumes:
- ./frontend/cypress:/e2e/cypress
- ./frontend/cypress.json:/e2e/cypress.json
django:
build:
context: .
dockerfile: backend/Dockerfile.backend
command: python manage.py runserver "0.0.0.0:${DJANGO_PORT:-8000}"
user: root
volumes:
- ./backend:/app
- ./.config/scripts/wait-for-it.sh:/usr/local/bin/wait-for-it.sh
nextjs:
build:
context: .
dockerfile: frontend/Dockerfile.frontend
command: npm run dev
environment:
NEXTAUTH_URL: "${BASE_URL}"
NODE_ENV: "development"
REACT_EDITOR: "code"
image: "ghcr.io/modularhistory/frontend:latest"
# user: root # avoid permissions issues with writing in build dir
volumes:
- ./frontend:/app
- ./frontend/node_modules:/app/node_modules
- ./.config/scripts/wait-for-it.sh:/usr/local/bin/wait-for-it.sh
- ./static:/static
- ./static:/app/public/static
- ./_volumes/media:/app/public/media
elasticsearch:
ports:
- "9200:9200"
environment:
- ELASTIC_PASSWORD=test
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
kibana:
ports:
- "5601:5601"
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"