-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.sample.yml
More file actions
41 lines (40 loc) · 970 Bytes
/
docker-compose.sample.yml
File metadata and controls
41 lines (40 loc) · 970 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
services:
synchronist: &synchronist
image: siegy22/synchronist:1.0.0.beta2
depends_on:
- redis
- postgres
volumes:
- synchronist_storage:/synchronist/storage
<volumes>
environment:
DATABASE_URL: "postgresql://synchronist:<pg_password>@postgres/synchronist"
REDIS_URL: redis://redis:6379/1
SYNCHRONIST_USERNAME: "<username>"
SYNCHRONIST_PASSWORD: "<password>"
SECRET_KEY_BASE: "<secret_key>"
ports:
- "<port>:3000"
restart: always
synchronist-worker:
<<: *synchronist
command: bundle exec sidekiq
ports: []
redis:
image: redis
volumes:
- redis_data:/data
restart: always
postgres:
image: postgres
environment:
POSTGRES_USER: synchronist
POSTGRES_PASSWORD: "<pg_password>"
POSTGRES_DB: synchronist
volumes:
- pg_data:/var/lib/postgresql/data
restart: always
volumes:
synchronist_storage:
pg_data:
redis_data: