-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.06 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
version: '3'
services:
app: &app-base
build:
context: .
dockerfile: build/development.Dockerfile
args:
RAILS_ENV: development
command: bundle exec rails server -b 0.0.0.0 -p '3000'
ports:
- '3000:3000'
links:
- postgres
environment:
LANG: 'C.UTF-8'
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
RAILS_ENV: development
SPRING_SOCKET: 'tmp/pids/spring.sock'
SPRING_SERVER_COMMAND: 'build-compose up spring'
env_file:
- secrets.env
volumes:
- .:/rails_app
- bundle-data:/usr/local/bundle
stdin_open: true
tty: true
spring:
<<: *app-base
ports: []
command: bundle exec spring server
pid: host
postgres:
image: postgres:13.1-alpine
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
bundle-data: {}
postgres-data: {}