-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.08 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
version: '3'
services:
app:
image: "climate_watch"
build:
context: .
args:
secretKey: 1234567890
ports:
- "3000:3000" # rails server
- "3035:3035" # webpacker dev server
env_file:
- .env
environment:
- POSTGRES_URL=postgres://postgres:example@postgres:5432/climate_watch
- REDIS_SERVER=redis://redis:6379/0
command: start
depends_on:
- postgres
- redis
volumes:
- .:/usr/src/climate-watch
- /usr/src/climate-watch/node_modules
sidekiq:
image: "climate_watch"
build:
context: .
args:
secretKey: 1234567890
environment:
- POSTGRES_URL=postgres://postgres:example@postgres:5432/climate_watch
- REDIS_SERVER=redis://redis:6379/0
env_file:
- .env
command: sidekiq
depends_on:
- postgres
- redis
postgres:
image: postgres:13.3
ports:
- "5432"
environment:
- POSTGRES_PASSWORD=example
- POSTGRES_USER=postgres
- POSTGRES_DB=climate_watch
redis:
image: redis
ports:
- "6379"