forked from decidim/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.0.29.dev.yml
87 lines (82 loc) · 2.09 KB
/
docker-compose.0.29.dev.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
# #################################################
# CONTRIBUTOR; WARNING
# This file is generated by the /update-documentation.rb script.
# Don't edit it directly.
#
# @see /update-documentation.rb
# @see /templates/quickstart.yml.erb
# #################################################
version: '3.3'
services:
# As example, we use here nginx.
# Feel free to use any other proxy, like HaProxy, etc.
nginx:
container_name: proxy
build:
dockerfile_inline: |
FROM nginx:1.25-alpine
ADD https://raw.githubusercontent.com/hfroger/docker/master/contrib/nginx/nginx.conf /etc/nginx/nginx.conf
networks:
- private
- default
links:
- decidim
ports:
- 8080:8080
decidim:
container_name: decidim
command: bundle exec rails s -b 0.0.0.0
# DON'T USE THIS IN PRODUCTION, this is an unstable version
image: hfroger/decidim:0.29-dev
volumes:
- storage:/home/decidim/app/storage
- bundle:/home/decidim/app/vendor
- public:/home/decidim/app/public
- db:/home/decidim/app/db
- config:/home/decidim/app/config
environment:
DECIDIM_SYSTEM_EMAIL: "admin@example.org"
DECIDIM_SYSTEM_PASSWORD: "my_insecure_password"
DATABASE_URL: "postgres://decidim:my_insecure_password@pg:5432/decidim"
RAILS_SERVE_STATIC_FILES: "false"
RAILS_FORCE_SSL: "false"
SMTP_ADDRESS: "mailer"
SMTP_PORT: "25"
SMTP_AUTHENTICATION: "none"
QUEUE_ADAPTER: "async"
depends_on:
- pg
- mailer
links:
- pg
- mailer
networks:
- private
pg:
image: postgres:15-alpine
volumes:
- pg-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "my_insecure_password"
POSTGRES_USER: "decidim"
POSTGRES_DB: "decidim"
networks:
- private
mailer:
image: tophfr/mailcatcher
ports:
# SMTP port is 25, webinterface is on 80
- 1080:80
networks:
- private
- default
volumes:
pg-data: {}
storage: {}
bundle: {}
public: {}
db: {}
config: {}
networks:
private:
internal: true