-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 1.05 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
---
version: '3'
services:
frontend:
image: node:14.7-stretch
environment:
- VUE_APP_BACKEND_SCHEME=${TONIE_AUDIO_MATCH_BACKEND_SCHEME}
- VUE_APP_BACKEND_HOST=${TONIE_AUDIO_MATCH_BACKEND_HOST}
- VUE_APP_BACKEND_PORT=${TONIE_AUDIO_MATCH_BACKEND_PORT}
command: >
bash -c "cd /frontend &&
npm install &&
npm run serve"
networks:
- toniebox
ports:
- ${TONIE_AUDIO_MATCH_FRONTEND_PORT}:8080
volumes:
- ./client/:/frontend
- ./albumart/:/frontend/public/assets/covers
backend:
image: python:3.8-buster
environment:
- TONIE_AUDIO_MATCH_MEDIA_PATH
- TONIE_AUDIO_MATCH_USER
- TONIE_AUDIO_MATCH_PASS
command: >
bash -c "cd /backend &&
pip install -r requirements.txt &&
python app.py"
networks:
- toniebox
ports:
- ${TONIE_AUDIO_MATCH_BACKEND_PORT}:5000
volumes:
- ./server/:/backend
- ./albumart/:/backend/assets/covers
- ${TONIE_AUDIO_MATCH_MEDIA_PATH}:/backend/assets/audiobooks
networks:
toniebox: