-
Notifications
You must be signed in to change notification settings - Fork 9
/
compose.yml
47 lines (46 loc) · 1.15 KB
/
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
services:
postgres:
image: postgres:15.6-alpine
container_name: starseeker-postgres
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
mongo:
image: mongo:7.0.14
container_name: starseeker-mongo
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
redis:
container_name: starseeker-redis
image: redis:7.0-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
- mongo
- redis
environment:
DATABASE_URL: postgresql://postgres:password@postgres
MONGO_HOST: mongo
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:
mongo-data:
mongo-config:
bundle: