-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (42 loc) · 879 Bytes
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
services:
webapp:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bin/rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/usr/src/app
- bundle:/usr/local/bundle
ports:
- "3000:3000"
env_file:
- .env.development
environment:
- DATABASE_URL=postgresql://postgres:changeme@db
- HISTFILE=/usr/src/app/log/.bash_history
depends_on:
- redis
- db
db:
container_name: 'db'
image: postgres:15
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=changeme
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis:6.2
ports:
- "6379:6379"
volumes:
- redis_data:/data
mailcatcher:
restart: on-failure
image: dockage/mailcatcher:0.9.0
ports:
- "1080:1080"
- "1025:1025"
volumes:
pg_data:
redis_data:
bundle: