-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
98 lines (91 loc) · 2.16 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
x-healthcheck: &healthcheck
interval: 1s
retries: 40
services:
web:
build: .
command: 'yarn dev'
environment: &common-env
RAILS_ENV: development
DEMO_INSTANCE: 'true'
DATABASE_URL: postgres://postgres@db
REDIS_URL: redis://redis:6379
TYPESENSE_URL: http://typesense:8108
TYPESENSE_API_KEY: trust
S3_BUCKET: untitled-note-app-development
S3_ENDPOINT: http://minio:9000/
S3_EXTERNAL_ENDPOINT: http://localhost:9000/
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: minio-password
env_file: .env
ports:
- '3000:3000'
- '3035:3035'
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
minio:
condition: service_healthy
redis:
condition: service_healthy
typesense:
condition: service_healthy
healthcheck:
<<: *healthcheck
test: 'timeout 1 bash -c "</dev/tcp/127.0.0.1/3000"'
clockwork:
build: .
entrypoint: ''
command: 'clockwork config/clockwork.rb'
environment: *common-env
env_file: .env
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
minio:
condition: service_healthy
db:
image: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
<<: *healthcheck
test: '/usr/bin/pg_isready -U postgres'
minio:
image: minio/minio
command: 'server /data'
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: minio-password
env_file: .env
ports:
- 9000:9000
volumes:
- minio:/data
healthcheck:
<<: *healthcheck
test: 'timeout 1 bash -c "</dev/tcp/127.0.0.1/9000"'
redis:
image: redis
healthcheck:
<<: *healthcheck
test: 'redis-cli --raw incr ping'
typesense:
image: typesense/typesense:0.25.2
command: '--data-dir /data --api-key=trust'
volumes:
- typesense:/data
healthcheck:
<<: *healthcheck
test: 'timeout 1 bash -c "</dev/tcp/127.0.0.1/8108"'
volumes:
pgdata:
typesense:
minio: