-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (61 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
67 lines (61 loc) · 1.58 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.9'
services:
db:
image: postgres:12.9
environment:
POSTGRES_PASSWORD: changeme
volumes:
- ./volumes/pgdata:/var/lib/postgresql/data
# minio:
# image: quay.io/minio/minio:latest
# command: server /data --console-address ":9001"
# environment:
# MINIO_ROOT_USER: minio_user
# MINIO_ROOT_PASSWORD: minio_password
# # volumes:
# # - ~/deployments/minio:/data
# ports:
# - 9000:9000
# - 9001:9001
# quay.io/minio/minio server /data --console-address ":9001"
# minio_mc:
# image: minio/mc:latest
# entrypoint: ['']
# command: >
# /bin/bash -c "
# sleep 5;
# mc alias set minio http://minio:9000 minio_user minio_password;
# mc mb minio/docuko"
# depends_on:
# - minio
web:
image: neume/docuko:latest
command: rails server
environment:
SECRET_KEY_BASE: supersecret
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: changeme
RAILS_SERVE_STATIC_FILES: 'true'
DATABASE_HOST: db
RAILS_STORAGE_SERVICE: 'local'
# AWS_ACCESS_KEY_ID: minio_user
# AWS_SECRET_ACCESS_KEY: minio_password
# AWS_ENDPOINT: http://minio:9000
# AWS_BUCKET: docuko
ports:
- '3000:3000'
depends_on:
- db
# - minio
volumes:
- ./volumes/docuko/storage:/app/storage
migration:
image: neume/docuko:latest
command: rails db:prepare
environment:
SECRET_KEY_BASE: supersecret
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: changeme
DATABASE_HOST: db
depends_on:
- db