Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (79 loc) · 1.62 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.8'
services:
redis:
image: redis:8.0.4-alpine
container_name: gopherq-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
networks:
- gopherq-network
producer:
build:
context: .
dockerfile: Dockerfile
target: server
container_name: gopherq-producer
ports:
- "8080:8080"
environment:
- PORT=8080
- REDIS_ADDR=redis:6379
- REDIS_PASSWORD=
- LOG_LEVEL=info
depends_on:
redis:
condition: service_healthy
networks:
- gopherq-network
restart: unless-stopped
worker:
build:
context: .
dockerfile: Dockerfile
target: worker
container_name: gopherq-worker
environment:
- REDIS_ADDR=redis:6379
- REDIS_PASSWORD=
- WORKER_CONCURRENCY=10
- QUEUE_NAME=default
- LOG_LEVEL=info
depends_on:
redis:
condition: service_healthy
networks:
- gopherq-network
restart: unless-stopped
dashboard:
build:
context: .
dockerfile: Dockerfile
target: dashboard
container_name: gopherq-dashboard
ports:
- "3000:3000"
environment:
- PORT=3000
- REDIS_ADDR=redis:6379
- REDIS_PASSWORD=
- LOG_LEVEL=info
depends_on:
redis:
condition: service_healthy
networks:
- gopherq-network
restart: unless-stopped
networks:
gopherq-network:
driver: bridge
volumes:
redis_data:
driver: local