-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 920 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
44
version: "3.9"
services:
db:
image: "postgres:latest"
restart: always
environment:
POSTGRES_PASSWORD: postgres_password
volumes:
- ./tmp/db:/var/lib/postgresql/data
backend:
build:
dockerfile: Dockerfile
context: ./backend
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./backend:/backend
environment:
- PGUSER=postgres
- PGHOST=db
- PGDATABASE=postgres
- PGPASSWORD=postgres_password
- PGPORT=5432
- RAILS_ENV=development
ports:
- "3000:3000"
depends_on:
- db
client:
build:
dockerfile: Dockerfile
context: ./client
volumes:
- /app/node_modules
- ./client:/app
env_file: ./client/.env
environment:
NODE_ENV: development
ports:
- "3001:3001"
depends_on:
- db
- backend