-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
58 lines (46 loc) · 1.27 KB
/
compose.yaml
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
# This is an EXAMPLE of using winvoice-gui
include:
- path: 'https://github.com/Iron-E/winvoice-server.git#v0.6.4'
project_directory: '.'
name: 'winvoice'
secrets:
proxy-ssl: {file: 'config/proxy/ssl/'}
proxy-ssl-cadir: {file: 'config/proxy/ssl-cadir/'}
networks:
frontend: null
services:
gui:
image: 'winvoice-gui:${WINVOICE_GUI_TAG:-0.2.0}'
build: '.'
depends_on:
server: {condition: 'service_healthy'}
healthcheck:
test: ['CMD', 'curl', '-fs', 'http://gui:3000']
interval: '10s'
timeout: '5s'
retries: 5
restart: 'always'
environment:
NODE_ENV: 'production'
VIRTUAL_HOST: '${VIRTUAL_HOST:-localhost}'
VIRTUAL_PORT: '${VIRTUAL_PORT:-3000}'
networks: ['frontend']
proxy:
image: 'nginxproxy/nginx-proxy:1.4-alpine'
depends_on:
gui: {condition: 'service_healthy'}
healthcheck:
test: ['CMD', 'curl', '-fs', 'https://localhost:443']
interval: '10s'
timeout: '5s'
retries: 5
restart: 'always'
secrets:
- source: 'proxy-ssl'
target: '/etc/nginx/certs'
- source: 'proxy-ssl-cadir'
target: '/etc/ssl/certs'
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
networks: ['frontend']
ports: ['80:80', '443:443']