forked from tech404/inviter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (54 loc) · 1.26 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
services:
redis:
image: redis:latest
networks:
- codeandsupply-network
db:
image: postgres:15-alpine
volumes:
- db:/var/lib/postgresql/data
networks:
- codeandsupply-network
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
dev:
build:
context: .
dockerfile: Dockerfile
target: development
environment:
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
- DATABASE_URL=postgres://postgres:postgres@db/inviter_development
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- codeandsupply-network
ports:
- "5000:5000"
- "1049:1049"
depends_on:
- db
- redis
volumes:
- .:/codeandsupply.co
- bundler:/usr/local/bundle
- assets:/codeandsupply.co/public/assets
- assetscache:/codeandsupply.co/tmp/cache/assets
- gemcache:/codeandsupply.co/vendor/cache
# for debugging
- bundler:/mnt/bundle
- assets:/mnt/assets
- assetscache:/mnt/assetscache
- gemcache:/mnt/gemcache
entrypoint: ["tail", "-f", "/dev/null"]
networks:
codeandsupply-network:
volumes:
db:
bundler:
assets:
assetscache:
gemcache: