-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 955 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
version: '3.4'
services:
commvoice:
build:
context: .
image: anelso42/commvoice
container_name: commvoice
devices:
- /dev/snd
networks:
- my-network
environment:
- ALSA_PCM=usbstream:CARD=StargazerMicrop
- PORT=${PORT:-5000}
- XDG_RUNTIME_DIR=/run/user/1000
- NUMBA_CACHE_DIR=/tmp
- ALSA_CARD=Generic
volumes:
- $HOME/.config/pulse:/usr/src/app/.config/pulse
- /etc/machine-id:/etc/machine-id:ro
- /run/user/1001/pulse:/run/user/1001/pulse:ro
ports:
- 5000:${PORT:-5000}
nginx:
build:
context: ./commonvoice
container_name: nginx
depends_on:
- commvoice
restart: always
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /etc/nginx/dhparam.pem:/etc/nginx/dhparam.pem
networks:
my-network:
aliases:
- commvoice
ports:
- 80:80
- 443:443
networks:
my-network: