-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.51 KB
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
version: '3.8'
services:
backend:
build:
context: ./pilot-backend
dockerfile: Dockerfile
container_name: wagtail-backend
volumes:
- ./pilot-backend:/app
- ./sample-db/db.sqlite3:/app/db.sqlite3
- backend-static:/app/static
- backend-media:/app/media
environment:
- DJANGO_SETTINGS_MODULE=mysite.settings.dev
- DATABASE_URL=sqlite:///db.sqlite3
ports:
- "8000:8000"
networks:
- app-network
frontend:
build:
context: ./pilot-frontend
dockerfile: Dockerfile
container_name: svelte-frontend
environment:
- NODE_ENV=production
- PUBLIC_WAGTAIL_API_URL=http://backend:8000/api/v2
- PUBLIC_IMAGE_DOMAIN=http://localhost
ports:
- "3000:3000"
networks:
- app-network
notebook:
build:
context: ./pilot-notebook
dockerfile: Dockerfile
container_name: jupyter-notebook
volumes:
- ./pilot-notebook:/workspace
ports:
- "8888:8888"
networks:
- app-network
nginx:
image: nginx:alpine
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- backend-static:/static
- backend-media:/media
depends_on:
backend:
condition: service_started
frontend:
condition: service_started
networks:
- app-network
restart: unless-stopped
volumes:
backend-static:
backend-media:
networks:
app-network:
driver: bridge