forked from travisim/Curvify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 973 Bytes
/
docker-compose.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
services:
db:
container_name: postgres
image: postgres:11
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
backend:
container_name: backend
platform: linux/amd64
build: ./backend
command: bundle exec rails s -p 3000 -b '0.0.0.0'
# command: rails s
volumes:
- ./backend:/myapp/backend
depends_on:
- db
frontend:
container_name: frontend
platform: linux/amd64
image: "node:20-alpine"
user: "node"
working_dir: /myapp/frontend
volumes:
# <host-path>:<container-path>
- ./frontend:/myapp/frontend
# - ./frontend/src:/myapp/frontend/src
command: "npm start dev:watch"
depends_on:
- backend
yaichi:
container_name: yaichi
platform: linux/amd64
image: mtsmfm/yaichi:1.5.0
ports:
- 80:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock