-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.2 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
version: "3.7"
x-postgresdb-client-env: &postgresdb-client-env
PG_HOST: ${PG_HOST:-postgres}
PG_PORT: ${PG_PORT:-5432}
PG_DB: ${PG_DB:-place_development}
PG_USER: ${PG_USER:-postgres}
PG_PASSWORD: ${PG_PASSWORD:-password}
services:
postgres:
hostname: postgres
image: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: place_development
ports:
- 5432:5432
# docker-compose exec -it auth2 rake db:create db:migrate
# docker-compose exec -it auth2 bundle exec rails test
auth2:
build: .
user: root
ports:
- "3000:8080"
hostname: auth
volumes:
- ./db:/app/db
- ./app:/app/app
- ./test:/app/test
depends_on:
- postgres
environment:
COAUTH_NO_SSL: "true"
TZ: $TZ
PLACE_URI: https://localhost:8443
RAILS_ENV: ${RAILS_ENV:-test}
SECRET_KEY_BASE: ${SECRET_KEY_BASE:-7d46ace87401c657323a47690dbe4a4c126e6de5a8de49fa47e92404fd80ba29eaa09f6910fc1ceb8ebb53234670b1870c558dfa3719671c98cf84b195cfc462}
<<: *postgresdb-client-env