forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 778 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 778 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:
web:
build: .
ports:
- "3000:3000"
depends_on:
- db
- redis
environment:
RAILS_ENV: development
DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres
YARN_INTEGRITY_ENABLED: "false"
volumes:
- .:/usr/src/app
command: bundle exec rails server -b 0.0.0.0 -p 3000
jobs:
build: .
command: rails jobs:work
depends_on:
- db
environment:
RAILS_ENV: development
DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres
webpacker:
build: .
command: ./bin/webpack-dev-server
db:
image: postgres:${POSTGRES_VERSION:-9.6.15-alpine}
ports:
- "5432:5432"
redis:
image: "redis"
ports:
- "6379:6379"