-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (49 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
60 lines (49 loc) · 1.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "5.3"
services:
distributed-task-project:
image: distributed-task-project
build:
context: .
dockerfile: Dockerfile # root Dockerfile (Next.js)
ports:
- "3000:3000"
depends_on:
- api
- worker
- postgres
- redis
api:
image: distributed-api
build:
context: ./packages/api
dockerfile: Dockerfile
ports:
- "4000:4000"
environment:
DATABASE_URL: postgres://dev:dev@postgres:5432/dtq
REDIS_URL: redis://redis:6379
worker:
image: distributed-worker
build:
context: ./packages/worker
dockerfile: Dockerfile # Dockerfile inside packages/worker
environment:
DATABASE_URL: postgres://dev:dev@postgres:5432/dtq
REDIS_URL: redis://redis:6379
postgres:
image: postgres:15
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: dtq
ports:
- "5432:5432"
volumes:
- "pgdata:/var/lib/postgresql/data"
redis:
image: redis:7
command: ["redis-server", "--save", "60", "1", "--appendonly", "yes"]
ports:
- "6379:6379"
volumes:
pgdata: