forked from AllYourBot/hostedgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
48 lines (43 loc) · 981 Bytes
/
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
version: '3.1'
services:
redis:
image: redis
ports: ['6379:6379']
healthcheck:
test: ["CMD", "redis-cli","ping"]
postgres:
image: postgres:16
ports: ['5432:5432']
restart: always
environment:
POSTGRES_USER: app
POSTGRES_DB: app_development
POSTGRES_PASSWORD: secret
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "app", "-d", "app_development"]
interval: 1s
retries: 5
base: &base
depends_on: ["redis", "postgres"]
restart: on-failure:3
tty: true
build:
context: .
target: development
environment:
- REDIS_URL=redis://redis/0
- DATABASE_URL=postgres://app:secret@postgres/app_development
ports: ["3000:3000"]
volumes:
- .:/rails
- /rails/tmp
worker:
<<: *base
restart: on-failure:3
tty: false
ports: []
command: bin/rails solid_queue:start
volumes:
pgdata: