forked from Open-Source-GIS/ridepilot
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
51 lines (46 loc) · 921 Bytes
/
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
version: '3'
volumes:
postgres_data:
redis:
services:
db:
image: mdillon/postgis:9.4
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: 'redis:4.0-alpine'
volumes:
- redis:/data
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
depends_on:
- db
- redis
env_file:
- ./docker/.env
ports:
- 3000:3000
volumes:
- .:/var/www/ridepilot
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
depends_on:
- app
ports:
- 80:80
sidekiq:
depends_on:
- db
- redis
build:
context: .
dockerfile: ./docker/app/Dockerfile
env_file:
- ./docker/.env
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- .:/var/www/ridepilot