-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 909 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (38 loc) · 909 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
version: '3.9'
services:
frontend:
tty: true
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/app
ports:
- 5173:5173
environment:
NODE_ENV: development
backend:
build:
context: ./backend
dockerfile: Dockerfile
command: bash -c "RAILS_ENV=development bundle exec rails db:migrate && RAILS_ENV=development bundle exec rails db:migrate && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./backend:/app
- ./docker:/app/docker
ports:
- 3000:3000
environment:
RAILS_ENV: development
depends_on:
- db
db:
image: postgres:13.3
ports:
- 5432:5432
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
PGDATA: /var/lib/postgresql/data/simcoemath/
POSTGRES_USER: postgres
POSTGRES_PASSWORD: simcoemath
POSTGRES_DB: simcoe-math