-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.24 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
51
52
53
54
55
56
version: '2'
services:
meteor:
build:
context: .
dockerfile: Dockerfile
environment:
- ROOT_URL=https://justgrimes.review
- MONGO_URL=mongodb://db:27017/justgrimes-review
- PORT=3000
- VIRTUAL_HOST=justgrimes.review,justgrimes.horse
- LETSENCRYPT_HOST=justgrimes.review,justgrimes.horse
- LETSENCRYPT_SINGLE_DOMAIN_CERTS=true
links:
- db
expose:
- "3000"
volumes:
- .:/src/app
restart: always
db:
image: mongo:3.6
volumes:
- /srv/db:/data/db
restart: always
nginx-proxy:
image: nginxproxy/nginx-proxy:alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
acme-companion:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
environment:
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
conf:
vhost:
html:
certs:
acme: