-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.23 KB
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
services:
db:
image: postgres:18.4
networks:
- rideshare-net
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- pg18_rideshare_db_data:/var/lib/postgresql
- ./postgresql/postgresql.conf:/etc/postgresql/postgresql.conf
command:
- postgres
- -c
- config_file=/etc/postgresql/postgresql.conf
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -b 0.0.0.0"
depends_on:
- db
environment:
RAILS_ENV: development
RIDESHARE_DB_PASSWORD: HSnDDgFtyW9fyFI
DB_URL: postgres://postgres:postgres@db:5432/postgres
DATABASE_URL: postgres://owner:@db:5432/rideshare_development
DATABASE_URL_PRIMARY: postgres://owner:HSnDDgFtyW9fyFI@db01:5432/rideshare_development
DATABASE_URL_REPLICA: postgres://owner:HSnDDgFtyW9fyFI@db02:5432/rideshare_development
ports:
- "3000:3000"
volumes:
- .:/app
- bundle_cache:/usr/local/bundle
networks:
- rideshare-net
volumes:
pg18_rideshare_db_data:
bundle_cache:
networks:
rideshare-net:
name: rideshare-net
external: true