-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
78 lines (73 loc) · 1.8 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
78 lines (73 loc) · 1.8 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
68
69
70
71
72
73
74
75
76
77
78
services:
api:
container_name: ${RAILS_CONTAINER_NAME}
build:
context: .
dockerfile: ${RAILS_DOCKERFILE}
env_file:
- .env
volumes:
- .:/rails
ports:
- ${RAILS_PORT_MAP}
depends_on:
db:
condition: service_healthy
# Run server only
command: ["./bin/rails", "server", "-b", "0.0.0.0"]
waka:
container_name: ${WAKA_CONTAINER_NAME}
build:
context: .
dockerfile: ${RAILS_DOCKERFILE}
env_file:
- .env
volumes:
- .:/rails
depends_on:
db:
condition: service_healthy
command: ["./bin/jobs"]
db:
container_name: ${DB_CONTAINER_NAME}
image: postgres:18-alpine
volumes:
- postgres:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
environment:
POSTGRES_PASSWORD: ${PG_PASSWORD}
# ports: # enable to access from outside of docker
# - ${PG_PORT_MAP}
# Media Worker [OPTIONAL] - processes :media queue only
media:
container_name: ${MEDIA_CONTAINER_NAME}
build:
context: .
dockerfile: ${RAILS_DOCKERFILE}
env_file:
- .env
volumes:
- .:/rails
depends_on:
db:
condition: service_healthy
command: ["./bin/jobs", "-c", "config/queue.media.yml"]
# Garage S3 Storage [OPTIONAL] - self-hosted S3-compatible object storage
garage:
image: dxflrs/garage:v1.0.1
container_name: ${GARAGE_CONTAINER_NAME:-dev-rexone-core-garage}
volumes:
- ./config/garage.toml:/etc/garage.toml:ro
- garage-meta:/var/lib/garage/meta
- garage-data:/var/lib/garage/data
ports:
- "${S3_PORT_MAP:-3100:3100}"
- "${S3_ADMIN_PORT_MAP:-3101:3101}"
volumes:
postgres:
garage-meta:
garage-data: