-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
75 lines (75 loc) · 1.73 KB
/
compose.yaml
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
services:
app:
build:
context: .
dockerfile: docker/app/Dockerfile
environment:
DATABASE_NAME: technical_metadata
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: "true"
REDIS_URL: redis://redis:6379/
SETTINGS__REDIS_URL: redis://redis:6379/
volumes:
- .:/app
working_dir: /app
ports:
- 3000:3000
depends_on:
- db
- workers
workers:
platform: linux/amd64 # Required for running on Apple Silicon
build:
context: .
dockerfile: docker/workers/Dockerfile
environment:
DATABASE_NAME: technical_metadata
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: "true"
REDIS_URL: redis://redis:6379/
SETTINGS__REDIS_URL: redis://redis:6379/
SETTINGS__WORKFLOW__URL: http://workflow:3000
volumes:
- .:/app
working_dir: /app
depends_on:
- db
- redis
- workflow
workflow:
image: suldlss/workflow-server:latest
depends_on:
- db
ports:
- 3001:3000
environment:
DATABASE_NAME: workflow-server
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
SETTINGS__ENABLE_STOMP: "false"
SETTINGS__REDIS__HOSTNAME: redis
db:
image: postgres:11
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: sekret
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis
ports:
- 6379:6379
volumes:
- redis-data:/data
volumes:
postgres-data:
redis-data: