-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (68 loc) · 1.46 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Local development environment
---
version: '3.8'
services:
spring:
build:
context: .
dockerfile: development.docker
env_file: .docker.env
volumes:
- code:/app:nocopy
depends_on:
- postgres
- redis
rails:
build:
context: .
dockerfile: development.docker
env_file: .docker.env
command: bin/docker-rails-server
stdin_open: true
tty: true
volumes:
- code:/app:nocopy
ports:
- "${PORT:-3000}:3000"
depends_on:
- postgres
- redis
sidekiq:
build:
context: .
dockerfile: development.docker
env_file: .docker.env
command: sidekiq
volumes:
- code:/app:nocopy
depends_on:
- postgres
- redis
postgres:
image: postgres:12.2
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:5.0.8
volumes:
- redis:/data
solargraph:
build:
context: .
dockerfile: development.docker
working_dir: $PWD
env_file: .docker.env
environment:
GEM_PATH: $PWD/vendor/bundle/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle
PATH: $PWD/vendor/bundle/ruby/2.7.0/bin:/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
command: solargraph socket --host 0.0.0.0 --port 7658
volumes:
- code:$PWD:nocopy
ports:
- 7658:7658
volumes:
code:
postgres:
redis: