-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.18 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
54
55
56
57
58
version: "2"
services:
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/usr/src/openvagas
expose:
- "3000"
ports:
- 3000:3000
stdin_open: true
tty: true
env_file: .env.development
environment:
RAILS_ENV: development
depends_on:
- db
- redis
links:
- mailcatcher
db:
image: postgres:13.2-alpine
volumes:
- postgresql:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "127.0.0.1:5432:5432"
mailcatcher:
restart: on-failure:10
image: dockage/mailcatcher:0.7.1
ports:
- "1080:1080"
- "1025:1025"
redis:
image: redis:6.0.12-alpine
command: redis-server
volumes:
- redis:/data
ports:
- "127.0.0.1:6379:6379"
logging:
driver: none
sidekiq:
image: openvagas_app
depends_on:
- app
- db
- redis
command: dotenv -f ".env.development" bundle exec sidekiq -C config/sidekiq.yml
env_file: .env.development
volumes:
- .:/usr/src/openvagas
volumes:
postgresql:
redis: