-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
71 lines (69 loc) · 1.69 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
version: '3.6'
services:
app: &app
build:
context: .
dockerfile: ./.docker/Dockerfile
target: dev
volumes:
- .:/usr/src/app
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
- db-init:/db-init
- ./bin/bundle-binstub:/usr/src/app/bin/bundle
depends_on:
- pg
- cache
- mail
- worker
environment:
- PORT=3000
- RAILS_DB_HOST=pg
- RAILS_ENV=development
- RAILS_MEMCACHED_HOST=cache
- SKIP_MEMCACHE_CHECK=true
- RAILS_MAIL_DELIVERY_CONFIG=address:mail,port:1025
#- RAILS_DB_NAME=decidim_luzern_production
ports:
- 3000:3000
command: bundle exec puma
entrypoint: ./.docker/entrypoint.sh
tty: true
stdin_open: true
pg:
image: postgres
environment:
- POSTGRES_USER=decidim_luzern
- POSTGRES_PASSWORD=7UhEIvi9wFymva3
- POSTGRES_DB=decidim_luzern_development
ports:
- 5432:5432
volumes:
- pg-data:/var/lib/postgresql/data
#- ./.docker/00-prepare-for-prod-dump.sql:/docker-entrypoint-initdb.d/00-prepare-for-prod-dump.sql
#- ./.docker/database-init.sql:/docker-entrypoint-initdb.d/database-init.sql
cache:
image: memcached:1.5-alpine
command: [ memcached, -l, '0.0.0.0', -p, '11211' ]
webpack:
<<: *app
depends_on: []
ports:
- 3035:3035
entrypoint: ./.docker/webpack-entrypoint.sh
command: [ 'bin/webpack-dev-server' ]
mail:
image: schickling/mailcatcher:latest
ports:
- '1080:1080'
worker:
<<: *app
depends_on: []
ports: []
entrypoint: []
command: [ rake, 'jobs:work' ]
volumes:
node_modules: {}
bundle: {}
pg-data: {}
db-init: {}