forked from linagora/twake-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (69 loc) · 2.34 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
63
64
65
66
67
68
69
70
71
72
73
services:
mongo:
container_name: mongo
image: mongo
volumes:
- mongo-data:/data/db
networks:
- tdrive_network
tdrive_node:
image: twakedrive/tdrive-node
hostname: tdrive_node
environment:
- DEV=production
- SEARCH_DRIVER=mongodb
- DB_DRIVER=mongodb
- PUBSUB_TYPE=local
volumes:
- ./docker-data/documents/:/storage/
depends_on:
- mongo
links:
- mongo
networks:
- tdrive_network
frontend:
image: twakedrive/tdrive-frontend
environment:
- DEV=production
- NODE_HOST=http://tdrive_node:4000
# Do not use SSL. Just connect to port 80:
# - SSL_CERTS=off
#
# Or generate a self signed certificate, for host `$SSL_SUBJ_CN` (default: `localhost`)
# unless one exists in `/etc/nginx/ssl/selfsigned.crt`
- SSL_CERTS=selfsigned
#
# Tip: To accept invalid certificate on localhost:
# - Chrome: enable chrome://flags/#allow-insecure-localhost
# - Firefox: about:config > security.enterprise_roots.enabled=true + security.certerrors.mitm.priming.enabled=false
#
# If using docker in a virtual or remote machine, create a new hostname in your /etc/hosts pointing to that IP
# and set `SSL_SUBJ_CN` to that hostname. (Chrome will not accept a self signed certificate for other than localhost.)
# For ex. with `docker-machine`, get ip with `docker-machine ip <machinename>`,
# add hosts file entry for docker-machine-default, then browse https://docker-machine-default
# - SSL_SUBJ_CN=docker-machine-default
#
# Debug certificate generation script:
# - DEBUG=yes
ports:
- 80:80
- 443:443
depends_on:
- tdrive_node
volumes:
- ./docker-data/logs/nginx/:/var/log/nginx
- ./docker-data/letsencrypt/:/etc/letsencrypt/
- ./docker-data/drive-preview/:/tdrive-core/web/medias/
- ./docker-data/uploads/:/tdrive-core/web/upload/
# If `$SSL_CERTS != off`, mounting certificates here will prevent auto-generating them.
# This allows you to keep previously generated (or other certificates), but changes to
# SSL_SUBJ_CN will be ignored then.
# - ./docker-data/ssl:/etc/nginx/ssl
networks:
- tdrive_network
networks:
tdrive_network:
driver: bridge
volumes:
mongo-data: