forked from pollend/CSAFE-Chapman-University
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 858 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
version: "3"
services:
db:
image: postgres:9.6
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:3.0.5
ports:
- "6379:6379"
volumes:
- redis:/var/lib/redis/data
web:
build:
context: .
dockerfile: ops/dev/Dockerfile
image: app
command: bash -c "yarn && bundle exec rails s -b 0.0.0.0"
volumes:
- ./:/app
ports:
- "3000:3000"
env_file:
- ./compose-files/docker-compose.env
tty: true
stdin_open: true
depends_on:
- db
- redis
sidekiq:
build:
context: .
dockerfile: ops/dev/Dockerfile
command: bundle exec sidekiq
depends_on:
- db
- redis
volumes:
- ./:/app
env_file:
- ./compose-files/docker-compose.env
volumes:
redis:
postgres: