-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (27 loc) · 896 Bytes
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
version: "3.5"
services:
backend:
build:
context: ./
target: backend
volumes:
- "./frontend/src/api:/usr/src/app/homepage/frontend/src/api"
- "./backend/database.spatialite:/usr/src/app/homepage/backend/database.spatialite"
command: bash -c "python manage.py out_bookmarks && python manage.py out_wiki && python manage.py out_places && python manage.py out_watched"
frontend:
build:
context: ./
target: frontend
volumes:
- "./frontend/src/api:/usr/src/app/homepage/frontend/src/api"
- "./frontend/build:/usr/src/app/homepage/frontend/build"
command: npm run-script build
admin:
build:
context: ./
target: backend
volumes:
- "./backend/database.spatialite:/usr/src/app/homepage/backend/database.spatialite"
ports:
- "8000:8000"
command: python manage.py runserver 0.0.0.0:8000