-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 944 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
42
43
44
45
46
47
version: '3.7'
services:
postgres:
image: postgres:13
volumes:
- ./.db/postgres:/var/lib/postgresql/data
- ./db-backups:/db-backups
ports:
- 127.0.0.1:5555:5432
env_file:
- .env
redis:
image: redis
volumes:
- ./.db/redis:/data
ports:
- 127.0.0.1:6666:6379
app:
&app
build:
context: .
target: app
image: app
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
ports:
- 127.0.0.1:8888:3000
volumes:
- bundle_cache:/application/bundle
- .:/application/app
depends_on:
- postgres
env_file:
- .env
webpacker:
image: app:latest
command: bin/webpack-dev-server
volumes:
- bundle_cache:/application/bundle
- .:/application/app
ports:
- 127.0.0.1:3035:3035
depends_on:
- app
env_file:
- .env
volumes:
bundle_cache: