forked from loomio/loomio-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (86 loc) · 2.14 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
letsencrypt:
container_name: loomio-letsencrypt
restart: always
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certificates:/etc/nginx/certs:rw
volumes_from:
- nginx
nginx:
container_name: loomio-nginx
restart: always
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certificates:/etc/nginx/certs:ro
- ./nginx/vhost.d:/etc/nginx/vhost.d
- ./nginx/conf.d/custom.conf:/etc/nginx/conf.d/custom.conf:ro
- ./nginx/html:/usr/share/nginx/html
ports:
- 80:80
- 443:443
links:
- app
app:
container_name: loomio-app
restart: always
image: ${LOOMIO_CONTAINER_IMAGE}:${LOOMIO_CONTAINER_TAG}
expose:
- 3000
env_file: ./env
links:
- db
- redis
environment:
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
- REDIS_URL=redis://redis:6379
volumes:
- ./client:/loomio/public/client
- ./uploads:/loomio/public/system
- ./storage:/loomio/storage
- ./files:/loomio/public/files
- ./plugins:/loomio/plugins/docker
- ./import:/import
worker:
container_name: loomio-worker
restart: always
image: ${LOOMIO_CONTAINER_IMAGE}:${LOOMIO_CONTAINER_TAG}
env_file: ./env
links:
- db
environment:
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
- REDIS_URL=redis://redis:6379
- TASK=worker
volumes:
- ./client:/loomio/public/client
- ./uploads:/loomio/public/system
- ./storage:/loomio/storage
- ./files:/loomio/public/files
- ./plugins:/loomio/plugins/docker
db:
container_name: loomio-db
restart: always
image: postgres:${POSTGRES_CONTAINER_TAG}
volumes:
- ./pgdata:/pgdata
- ./pgdumps:/pgdumps
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=loomio_production
- PGDATA=/pgdata
redis:
container_name: loomio-redis
restart: always
image: redis:5.0
mailin:
container_name: loomio-mailin
restart: always
image: ${MAILIN_CONTAINER_IMAGE}:${MAILIN_CONTAINER_TAG}
ports:
- "25:25"
links:
- app
environment:
- WEBHOOK_URL=http://app:3000/email_processor/