-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 1.31 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
version: '3'
services:
postgres:
environment:
PGDATA: /var/lib/postgresql/data/pgdata
image: postgres:11-alpine
ports:
- 5432
volumes:
- .compose-data/postgresql:/var/lib/postgresql/data/pgdata
redis:
command: redis-server --appendonly yes
image: redis:5-alpine
ports:
- 6379
volumes:
- .compose-data/redis:/data
app:
build: .
depends_on:
- postgres
- redis
environment:
- DATABASE_URL=postgres://postgres:@postgres:5432
- REDIS_URL=redis://redis:6379
- SECRET_KEY_BASE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: on-failure
volumes:
- ${PWD}/config/secrets.yml:/usr/src/shipit/config/secrets.yml:ro
ports:
- 3000:3000
worker:
build: .
depends_on:
- postgres
- redis
environment:
- DATABASE_URL=postgres://postgres:@postgres:5432
- REDIS_URL=redis://redis:6379
- SECRET_KEY_BASE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: on-failure
volumes:
- ${PWD}/config/secrets.yml:/usr/src/shipit/config/secrets.yml:ro
command: bundle exec sidekiq -C config/sidekiq.yml