-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
47 lines (44 loc) · 1.12 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
version: '2'
services:
postgres:
image: postgres:11
environment:
- "POSTGRES_USER=caesar"
- "POSTGRES_PASSWORD=caesar"
ports:
- "5432:5432"
redis:
image: redis
command: redis-server --appendonly yes
app:
image: caesar:local
build:
context: .
args:
RAILS_ENV: development
volumes:
- ./:/app
ports:
- "3000:80"
environment:
- "RAILS_ENV=development"
- "REDIS_URL=redis://redis:6379"
- "DATABASE_URL=postgresql://caesar:caesar@postgres/caesar_development"
- "DATABASE_URL_TEST=postgresql://caesar:caesar@postgres/caesar_test"
links:
- redis:redis
- postgres:postgres
sidekiq:
image: caesar:local
command: ["/app/docker/start-sidekiq.sh"]
volumes:
- ./:/app
environment:
- "RAILS_ENV=development"
- "REDIS_URL=redis://redis:6379"
- "DATABASE_URL=postgresql://caesar:caesar@postgres/caesar_development"
- "DATABASE_URL_TEST=postgresql://caesar:caesar@postgres/caesar_test"
- "SIDEKIQ_VERBOSE=true"
links:
- redis:redis
- postgres:postgres