forked from venarius/stellar-invictus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1000 Bytes
/
docker-compose.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
version: "3"
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- database
ports:
- "3000:3000"
environment:
- DATABASE_HOST=database
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=stellar
- REDIS_URL=redis://redis:6379/1
volumes:
- ".:/myapp"
redis:
image: redis:5.0.3-alpine
sidekiq:
depends_on:
- database
- redis
build:
context: .
dockerfile: docker/Dockerfile
command: sidekiq
volumes:
- ".:/myapp"
environment:
- DATABASE_HOST=database
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=stellar
- REDIS_URL=redis://redis:6379/1
database:
image: postgres:11.2-alpine
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=stellar
volumes:
db_data: