-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.12 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
43
44
45
46
47
48
49
50
version: '3'
services:
nginx-proxy:
image: "jwilder/nginx-proxy"
ports:
- 80:80
- 443:443
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
letsencrypt-nginx-proxy-companion:
image: "jrcs/letsencrypt-nginx-proxy-companion"
depends_on:
- nginx-proxy
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
postgres:
image: "postgres"
expose:
- 5432
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- postgres-data:/var/lib/postgresql/data
application:
build: .
depends_on:
- postgres
expose:
- "80"
environment:
VIRTUAL_HOST: "${HOST}"
LETSENCRYPT_HOST: "${HOST}"
LETSENCRYPT_EMAIL: "${EMAIL}"
volumes:
nginx-certs:
nginx-vhost:
nginx-html:
postgres-data: