-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
38 lines (36 loc) · 940 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
version: '3.7'
services:
app:
image: 'soulsearch:latest'
build: .
init: true
user: node
env_file:
- .env
environment:
VIRTUAL_PORT: '3000'
HOST: '0.0.0.0'
NUXT_HOST: '0.0.0.0'
BASE_URL: 'http://localhost:3000'
depends_on:
- proxy
healthcheck:
test: 'curl -f http://localhost:3000 || exit 1'
proxy:
image: jwilder/nginx-proxy:alpine
ports:
- target: 80
published: "${PROXY_HTTP_PORT}"
mode: host
- target: 443
published: "${PROXY_HTTPS_PORT}"
mode: host
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
volumes:
- ./proxy/certs:/etc/nginx/certs
- ./proxy/conf.d:/etc/nginx/conf.d
- ./proxy/vhost.d:/etc/nginx/vhost.d
- ./proxy/html:/usr/share/nginx/html
- ./proxy/htpasswd:/etc/nginx/htpasswd
- /var/run/docker.sock:/tmp/docker.sock:ro