-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
65 lines (64 loc) · 1.28 KB
/
docker-compose.dev.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
59
60
61
62
63
64
65
version: "3.6"
services:
db:
env_file:
- '.env'
image: postgres:latest
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_DB=example_app_development
- POSTGRES_USER=${POSTGRES_USER_DEV}
- POSTGRES_PASSWORD=${POSTGRES_PW_DEV}
web:
env_file:
- '.env'
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
pgadmin:
env_file:
- '.env'
image: dpage/pgadmin4
depends_on:
- db
ports:
- "5555:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL_DEV}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PW_DEV}
restart: unless-stopped
mailcatcher:
image: jeanberu/mailcatcher
ports:
- "1025:1025"
- "1080:1080"
redis:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server
sidekiq:
depends_on:
- redis
build:
context: .
dockerfile: Dockerfile.dev
command: bundle exec sidekiq
volumes:
- .:/myapp
env_file:
- '.env'
volumes:
pgdata: