-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 986 Bytes
/
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
version: '3.3'
services:
nvidia-flask:
container_name: nvidia-flask
build: ./backend
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
expose:
- "9999"
volumes:
- ./backend:/workspace
environment:
- VIRTUAL_HOST=api.fish-loc.tkwant.de
- LETSENCRYPT_HOST=api.fish-loc.tkwant.de
- LETSENCRYPT_EMAIL=YOUREMAIL
- PYTHONUNBUFFERED=1
networks:
- fish-backend
mongodb:
image: mongo:latest
container_name: mongodb
volumes:
- ./db-data:/data/db
networks:
- fish-backend
nginx:
restart: always
image: nginx:1.21.0
container_name: nginx
volumes:
- ./frontend/build:/usr/share/nginx/html:ro
environment:
- VIRTUAL_HOST=fish-loc.tkwant.de
- LETSENCRYPT_HOST=fish-loc.tkwant.de
- LETSENCRYPT_EMAIL=YOUREMAIL
networks:
fish-backend:
name: fish-backend
proxy:
external: true