-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
43 lines (41 loc) · 1.17 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
services:
frontend:
build: frontend
command: yarn start-docker
ports:
- 3000:3000
restart: on-failure
volumes:
- ./frontend/src:/opt/frontend/src
- ./appdata:/opt/appdata
- ./frontend/vite.config.js:/opt/frontend/vite.config.js
- ./frontend/index.html:/opt/frontend/index.html
secrets:
- source: frontend-api-keys
target: .env
api:
build: server
ports:
- 8000:8000
restart: on-failure
volumes:
- ./server:/opt/server
- ./appdata:/opt/appdata
worker:
build: backend-worker
command: /opt/conda/bin/python /opt/worker/worker.py api 8000 /opt/appdata
restart: on-failure
volumes:
- ./backend-worker:/opt/worker
- ./appdata:/opt/appdata
fileserver:
image: nginx:mainline
restart: on-failure
ports:
- 9000:80
volumes:
- ./fileserver/app.conf:/etc/nginx/conf.d/default.conf
- ./appdata:/opt/appdata
secrets:
frontend-api-keys:
file: ./frontend/.env