-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose-development.yml
More file actions
55 lines (55 loc) · 1.06 KB
/
docker-compose-development.yml
File metadata and controls
55 lines (55 loc) · 1.06 KB
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
version: '2'
services:
registry:
image: larrow/registry:2.6
volumes:
- /data/registry:/var/lib/registry
- ./config/cert.pem:/etc/docker/registry/cert.pem
env_file: config/env_file
ports:
- 5001:5001
db:
image: postgres
ports:
- 5433:5432
redis:
image: redis
ports:
- 6380:6379
worker:
build: worker
volumes:
- ./worker:/usr/src/app
- ./config/private_key.pem:/usr/src/app/config/private_key.pem:ro
env_file: config/env_file
depends_on:
- web
- registry
- redis
web:
build: .
# useful for binding.pry and rails c
tty: true
stdin_open: true
environment:
RAILS_ENV: development
WEB_CONCURRENCY: 4
env_file: config/env_file
volumes:
- .:/usr/src/app
depends_on:
- db
- registry
- redis
proxy:
image: larrow/caddy
volumes:
- ./config/Caddyfile:/etc/Caddyfile
- ./config/caddy:/root/.caddy
ports:
- 80:80
- 443:443
depends_on:
- db
- registry
- web