-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 963 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
version: "3"
services:
db:
image: postgres:12.4
environment:
- POSTGRES_USER=admin_apientreprise
- POSTGRES_PASSWORD=wow*verysecret
- POSTGRES_DB=admin_apientreprise_development
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./docker/db/:/docker-entrypoint-initdb.d
redis:
image: "redis:6.2-alpine"
command: redis-server
web:
build: .
command: bin/rails server --port 5000 --binding 0.0.0.0
volumes:
- .:/app:consistent
ports:
- "5000:5000"
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
- RAILS_ENV=development
depends_on:
- db
- redis
links:
- db
- redis
workers:
build: .
command: bundle exec good_job start
volumes:
- .:/app
depends_on:
- db
- redis
links:
- db
- redis
environment:
- RAILS_ENV=development
- POSTGRES_HOST=db
- REDIS_HOST=redis