-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
44 lines (39 loc) · 1 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
version: "3.7"
services:
postgres:
image: postgres:14.1-alpine
environment:
POSTGRES_DB: domando_development
POSTGRES_USER: domando
POSTGRES_PASSWORD: MyPassword
redis:
image: redis:6.2.6-alpine
cas-mock-server:
image: apereo/cas
volumes:
- ./docker/cas:/etc/cas/
ports:
- 8080:8080
web:
depends_on:
- 'postgres'
- 'redis'
- 'cas-mock-server'
build:
context: .
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
command: >
sh -c "EDITOR='cat' bin/rails credentials:edit ; bin/rails db:migrate db:seed assets:precompile && ruby bin/rails s -p 8020 -b 0.0.0.0"
ports:
- 8020:8020
environment:
RAILS_CAS_URL: http://cas-mock-server:8080/cas
RAILS_DATABASE_URL: postgres://domando:MyPassword@postgres/domando_development
RAILS_ENV: production
RAILS_REDIS_URL: redis://redis:6379/1
links:
- postgres
- redis
- cas-mock-server