This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
forked from loomio/loomio-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (69 loc) · 1.68 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
version: '3'
services:
loadbalancer:
container_name: caddy
image: caddy
network_mode: host
volumes:
- ./caddy:/etc/caddy
- ./certs:/data/caddy # to save certificates on disk
app:
container_name: loomio-app
restart: always
image: ${LOOMIO_CONTAINER_IMAGE}
expose:
- 3000
env_file: ./env
ports:
- 127.0.0.1:3000:3000
links:
- db
- redis
environment:
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
- REDIS_URL=redis://redis:6379
- VIRTUAL_HOST=loomio.10pines.com
volumes:
- ./uploads:/loomio/public/system
- ./files:/loomio/public/files
- ./plugins:/loomio/plugins/docker
- ./import:/import
worker:
container_name: loomio-worker
restart: always
image: ${LOOMIO_CONTAINER_IMAGE}
env_file: ./env
links:
- db
environment:
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
- TASK=worker
volumes:
- ./client:/loomio/public/client
- ./uploads:/loomio/public/system
- ./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
- PGDATA=/pgdata
redis:
container_name: loomio-redis
restart: always
image: redis:5.0
mailin:
container_name: loomio-mailin
restart: always
image: ${MAILIN_CONTAINER_IMAGE}
ports:
- "25:25"
links:
- app
environment:
- WEBHOOK_URL=http://app:3000/email_processor/