-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (36 loc) · 965 Bytes
/
compose.yml
File metadata and controls
37 lines (36 loc) · 965 Bytes
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
services:
postgres:
image: postgres:17.4-alpine
container_name: starseeker-postgres
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
redis:
container_name: starseeker-redis
image: redis:7.2-alpine
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
container_name: starseeker
volumes:
- .:/app
- bundle:/bundle
ports:
- "3000:3000"
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgresql://postgres:password@postgres
REDIS_URL: redis://redis:6379
BUNDLE_PATH: /bundle
BASE_URL: ${BASE_URL:-http://localhost:3000}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_LOGIN: ${GITHUB_LOGIN}
GITHUB_SECRET: ${GITHUB_SECRET}
GITHUB_TOKEN: ${GITHUB_TOKEN}
RUBYOPT: '-W:deprecated'
volumes:
postgres-data:
bundle: