-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (61 loc) · 1.89 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
57
58
59
60
61
62
version: '2'
services:
# Configure Nginx
nginx_proxy_meteor:
container_name: nginx_proxy_meteor
image: jwilder/nginx-proxy
volumes:
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
restart: always
nginx_letsencrypt_companion_meteor:
container_name: nginx_letsencrypt_companion_meteor
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- ./certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- nginx_proxy_meteor
depends_on:
- nginx_proxy_meteor
restart: always
app:
container_name: public_meteor
image: blockfreight/public
external_links:
- mongo:mongo_meteor
depends_on:
- mongo_meteor
- nginx_letsencrypt_companion_meteor
#ports:
# - "3000:3000"
environment:
DEFAULT_HOST: ${ENV_DEFUALT_HOST}
VIRTUAL_HOST: ${ENV_VIRTUAL_HOST}
LETSENCRYPT_HOST: ${ENV_LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${ENV_LETSENCRYPT_EMAIL}
MONGO_USER: ${ENV_MONGO_USER}
MONGO_PASSWORD: ${ENV_MONGO_PASSWORD}
MONGO_URL: ${ENV_MONGO_URL}
MONGO_OPLOG_URL: ${ENV_MONGO_OPLOG_URL}
MAIL_URL: ${ENV_MAIL_URL}
ROOT_URL: ${ENV_ROOT_URL}
restart: always
mongo_meteor:
container_name: mongo_meteor
image: mongo
command: mongod --storageEngine=wiredTiger
ports:
- 27018:27018
volumes:
- mongodata:/data/db
restart: always
volumes:
mongodata: