forked from kroniak/yandex-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.32 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
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: yandex-nginx-proxy-production
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ~/yandex_wallet/certs:/etc/nginx/certs:ro
- /usr/share/nginx/html
- ~/yandex_wallet/nginx/vhost.d:/etc/nginx/vhost.d
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: yandex-letsencrypt
restart: always
volumes:
- ~/yandex_wallet/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- nginx
db:
image: mongo:3.4
container_name: yandex-mongodb-production
restart: always
volumes:
- ~/yandex_wallet/db/backup:/backup:rw
web:
image: yandex-wallet
container_name: yandex-web-production
restart: always
depends_on:
- db
- nginx
- letsencrypt
links:
- db
volumes:
- ~/yandex_wallet/logs:/app/server/logs
environment:
- NODE_JWT_SECRET=jksjksajkKJSJKjksajksafjkJKSjkasjkqwbkDJKBLJKSdjkasdjksadjk
- NODE_MONGO=mongodb://db/yandex_wallet
- NODE_DOMAIN=wallet.kroniak.net
- VIRTUAL_HOST=wallet.kroniak.net
- LETSENCRYPT_HOST=wallet.kroniak.net
- LETSENCRYPT_EMAIL=me@kroniak.net