-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 885 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 885 Bytes
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
version: "3.9"
services:
frontend:
image: "ghcr.io/serviceboard/frontend:$FRONTEND_VERSION"
env_file:
- .env
ports:
- "8080:3000"
depends_on:
- backend
backend:
image: "ghcr.io/serviceboard/backend:$BACKEND_VERSION"
env_file:
- .env
ports:
- "3000:3000"
depends_on:
- postgres
- redis
- elasticsearch
db-init:
deploy:
replicas: 0
image: "ghcr.io/serviceboard/backend:$BACKEND_VERSION"
env_file:
- .env
entrypoint: >
bash -c "
bundle exec rails db:seed:all
bundle exec rails active_storage:install
"
depends_on:
- postgres
- redis
postgres:
image: "postgres:11"
env_file:
- .env
redis:
image: "redis:6.2"
elasticsearch:
image: "elasticsearch:7.17.10"
environment:
- discovery.type=single-node