-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 997 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
version: '3.7'
services:
api:
container_name: api
build:
context: .
args:
- SERVICE=api
environment:
- STORAGE_POSTGRES_URL=postgresql://user:pass@postgres/watchmarket?sslmode=disable
- STORAGE_REDIS_URL=redis://redis:6379
ports:
- 8421:8421
links:
- redis
- postgres
restart: on-failure
worker:
container_name: worker
build:
context: .
args:
- SERVICE=worker
environment:
- STORAGE_POSTGRES_URL=postgresql://user:pass@postgres/watchmarket?sslmode=disable
- STORAGE_REDIS_URL=redis://redis:6379
links:
- postgres
restart: on-failure
redis:
container_name: redis
image: redis
ports:
- 6379:6379
restart: on-failure
postgres:
container_name: postgres
image: postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=watchmarket
ports:
- 5432:5432
restart: on-failure