-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 770 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 770 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
version: '3'
services:
app: &app
build:
context: .
dockerfile: docker/app/Dockerfile
env_file: .env
ports:
- 3000:3000
volumes:
- .:/workspace:cached
- bundle-volume:/workspace/vendor/bundle
- node-module-volume:/workspace/node_modules
depends_on:
- postgres
command: bash -c 'bin/setup && bin/rails s -b 0.0.0.0'
webpacker:
<<: *app
command: bin/webpack-dev-server
ports:
- 3035:3035
postgres:
image: postgres:14
restart: unless-stopped
volumes:
- postgres-volume:/var/lib/postgresql/data
environment:
POSTGRES_USER: pg
POSTGRES_PASSWORD: password
ports:
- 5432:5432
volumes:
postgres-volume:
bundle-volume:
node-module-volume: