-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-dev.yaml
57 lines (55 loc) · 1.01 KB
/
compose-dev.yaml
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
49
50
51
52
53
54
55
56
services:
app:
entrypoint:
- sleep
- infinity
image: docker/dev-environments-default:stable-1
init: true
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD = trust
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- ".:/app"
ports:
- "3001:3000"
depends_on:
- db
links:
- db
environment:
DB_USER: postgres
DB_NAME: app
DB_PASSWORD: postgres
DB_HOST: db
worker:
build: .
command: rake jobs:work
volumes:
- ".:/app"
depends_on:
- db
links:
- db
environment:
DB_USER: postgres
DB_NAME: app
DB_PASSWORD: postgres
DB_HOST: db
volumes:
db:
driver: local