-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.with_eform_sync.yml
59 lines (53 loc) · 1.28 KB
/
docker-compose.with_eform_sync.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
version: '3'
services:
postgres:
image: postgres:12-alpine
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:5-alpine
volumes:
- redis:/data
web:
image: ghcr.io/slovensko-digital/slovensko-sk-api:latest
volumes:
- ./security:/app/security
ports:
- 3000:3000
depends_on:
- postgres
- redis
env_file:
- .env
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/slovensko-sk-api
REDIS_URL: redis://redis:6379
worker:
image: ghcr.io/slovensko-digital/slovensko-sk-api:latest
volumes:
- ./security:/app/security
depends_on:
- postgres
- redis
env_file:
- .env
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/slovensko-sk-api
REDIS_URL: redis://redis:6379
command: bundle exec rake jobs:work
clock:
image: ghcr.io/slovensko-digital/slovensko-sk-api:latest
volumes:
- ./security:/app/security
depends_on:
- postgres
- redis
env_file:
- .env
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/slovensko-sk-api
REDIS_URL: redis://redis:6379
command: bundle exec clockwork config/clock.rb
volumes:
postgres:
redis: