This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (78 loc) · 1.83 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.2'
services:
redis:
image: redis:5.0.5
command: redis-server --requirepass redispassword
volumes:
- redis-data:/data
ports:
- "6379:6379"
# minio:
# command: '--compat server --address ":9001" /data'
# environment:
# CREATE_BUCKET: shrine
# MINIO_ACCESS_KEY: foobarfoobar
# MINIO_SECRET_KEY: foobarfoobar
# image: minio/minio:latest
# volumes:
# - minio:/data
# ports:
# # my vscode gobbles up port 9000
# - "9001:9001"
db:
environment:
POSTGRES_PASSWORD: ssjson
POSTGRES_USER: ssjson
POSTGRES_DB: ssjson
image: postgres:10
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
# sidekiq:
# env_file: s3.env
# environment:
# REDIS_HOST: redis
# REDIS_PASSWORD: redispassword
# RAILS_SERVE_STATIC_FILES: "true"
# RAILS_ENV: development
# RAILS_LOG_TO_STDOUT: "true"
# POSTGRES_USER: shrinedemo
# POSTGRES_HOST: db
# POSTGRES_DB: shrinedemo
# POSTGRES_PASSWORD: shrinedemo
# build: .
# command: >
# sh -c "bundle exec sidekiq"
web:
# env_file: s3.env
environment:
REDIS_HOST: redis
REDIS_PASSWORD: redispassword
RAILS_SERVE_STATIC_FILES: "true"
RAILS_ENV: development
RAILS_LOG_TO_STDOUT: "true"
POSTGRES_USER: ssjson
POSTGRES_HOST: db
POSTGRES_DB: ssjson
POSTGRES_PASSWORD: ssjson
build: .
command: >
sh -c "echo starting database migrations &&
yarn &&
rails db:migrate &&
echo starting rails &&
rails s -b 0.0.0.0"
volumes:
- type: bind
source: ./app
target: /app/app
consistency: cached
ports:
- "3000:3000"
depends_on:
- db
volumes:
redis-data:
minio:
db-data: