-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.17 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
# Local development environment
---
version: '3.7'
services:
spring:
build:
context: .
dockerfile: development.docker
env_file: .docker.env
volumes:
- code:/usr/src/app:nocopy
depends_on:
- postgres
rails:
build:
context: .
dockerfile: development.docker
env_file: .docker.env
command: bin/docker-rails-server
stdin_open: true
tty: true
volumes:
- code:/usr/src/app:nocopy
ports:
- "${PORT:-3000}:3000"
depends_on:
- postgres
postgres:
image: postgres:12.2
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/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: