-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 905 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 905 Bytes
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
version: '3'
services:
decidim:
image: decidim/decidim:latest
entrypoint: ["/code/vendor/hello-world.sh"]
# The entrypoint override above wipes out the CMD
# on the Dockerfile-deploy, so we need to declare it
# again here (https://github.com/docker/compose/issues/3140)
command: ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"]
ports:
- 3000:3000
volumes:
# Makes our entrypoint scripts available to the container
# under /code/vendor
- ./scripts:/code/vendor
environment:
- RAILS_ENV=development
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
links:
- pg
- redis
pg:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
image: redis
volumes:
- redis-data:/data
volumes:
pg-data: {}
redis-data: {}