-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
80 lines (74 loc) · 1.73 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
services:
decidim:
container_name: decidim
build: .
entrypoint: ""
command: sleep infinity
ports:
- 8080:8080
volumes:
- .:/home/decidim/app
environment:
RAILS_ENV: production
NODE_ENV: production
DECIDIM_SYSTEM_EMAIL: "[email protected]"
DECIDIM_SYSTEM_PASSWORD: "my_insecure_password"
SECRET_KEY_BASE: "my_insecure_password"
DATABASE_URL: "postgres://decidim:my_insecure_password@pg:5432/decidim"
REDIS_URL: "redis://default:my_insecure_password@redis:6379/1"
RAILS_SERVE_STATIC_FILES: "true"
RAILS_FORCE_SSL: "false"
SMTP_ADDRESS: "mailer"
SMTP_PORT: "25"
SMTP_AUTHENTICATION: "none"
PM2_RUN: decidim
QUEUE_ADAPTER: async
MEMCACHE_SERVERS: memcached:11211
links:
- pg
- redis
- mailer
- memcached
networks:
- private
- default
pg:
image: postgres:16-alpine
volumes:
- pg-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "my_insecure_password"
POSTGRES_USER: "decidim"
POSTGRES_DB: "decidim"
networks:
- private
redis:
image: redis:7-alpine3.18
command:
- 'redis-server'
- '--loglevel warning'
- '--appendonly yes' # AOF mode
- '--requirepass my_insecure_password' # min 64 chars in prod.
volumes:
- redis-data:/data
networks:
- private
memcached:
image: memcached:1.6.16-alpine
networks:
- private
command:
- '--memory-limit=1024'
mailer:
image: tophfr/mailcatcher
ports:
# SMTP port is 25, webinterface is on 80
- 1080:80
networks:
- private
- default
volumes:
pg-data: {}
redis-data: {}
networks:
private: