-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
95 lines (95 loc) · 2.13 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
version: "3.9"
services:
client_deployed_dev:
restart: always
stdin_open: true
build:
context: ./web
dockerfile: ./Dockerfile.nginx
ports:
- "80:80"
- "8080:8080"
- "8082:8082"
- "443:443"
depends_on:
- backend
volumes:
- type: bind
target: /usr/src/app/data
source: ${UPLOAD_FOLDER}
- type: bind
target: /etc/ssl
source: ${SSL_CERT_FOLDER}
- type: bind
target: /var/www/certbot/
source: ./certbot/www
profiles:
- deploy
networks:
- default
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- type: bind
target: /etc/letsencrypt/
source: ${SSL_CERT_FOLDER}
profiles:
- cert
backend:
restart: always
build: .
depends_on:
- redis
expose:
- "5000"
volumes:
- type: bind
target: /usr/src/app/data
source: ${UPLOAD_FOLDER}
- type: bind
target: /usr/src/app/backend_log/
source: ${BACKEND_LOG}
networks:
- default
redis:
restart: always
image: "redis:alpine"
dashboard:
restart: always
build: ./dashboard
depends_on:
- redis
environment:
- RQ_DASHBOARD_REDIS_URL=redis://redis:6379
- RQ_DASHBOARD_USERNAME=${RQ_DASHBOARD_USERNAME}
- RQ_DASHBOARD_PASSWORD=${RQ_DASHBOARD_PASSWORD}
- RQ_DASHBOARD_URL_PREFIX=/dashboard
expose:
- "9181"
networks:
- default
worker:
restart: always
build: .
depends_on:
- redis
volumes:
- type: bind
target: /usr/src/app/data
source: ${UPLOAD_FOLDER}
- type: bind
target: /usr/src/app
source: .
command: sh -c "pipenv run rqworker --exception-handler 'images_to_mesh.app.exception_handlers.exeption_handlers.queue_handler' --with-scheduler -u redis://redis:6379"
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]
networks:
- default
volumes:
exclude: