-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 927 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 927 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.7"
services:
app:
ports:
- 3000:3000
build:
context: .
dockerfile: Dockerfile-dev
depends_on:
- db
links:
- db
- cache
env_file: docker-env.env
command: /bin/sh -c './bin/app_update && bundle exec rails s -p 3000 -b "0.0.0.0"'
volumes:
- .:/app
environment:
REDIS_URL: redis://cache
workers:
build:
context: .
dockerfile: Dockerfile-dev
depends_on:
- app
links:
- db
- cache
env_file: docker-env.env
command: /bin/sh -c './bin/workers_update && bundle exec sidekiq'
volumes:
- .:/app
environment:
REDIS_URL: redis://cache
cache:
image: redis
ports:
- 6379:6379
db:
image: postgres:11.3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 11111111
volumes:
- db:/var/lib/postgresql/data
volumes:
db: