-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcontainer-compose.yml
51 lines (48 loc) · 1.12 KB
/
container-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: "2.0"
services:
hotness:
image: hotness:latest
build:
context: .
dockerfile: Containerfile.dev
args:
FEDORA_VERSION: 40
container_name: "hotness"
volumes:
- ./hotness/:/app/hotness:z
- ./docs/:/app/docs:z
- ./tests/:/app/tests:z
privileged: true
tty: true
restart: unless-stopped
depends_on:
rabbitmq:
condition: service_started
redis:
condition: service_started
rabbitmq:
image: docker.io/library/rabbitmq:3.8.16-management-alpine
container_name: "rabbitmq"
restart: unless-stopped
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 3s
timeout: 3s
retries: 30
environment:
- RABBITMQ_DEFAULT_USER=hotness
- RABBITMQ_DEFAULT_PASS=hotness
redis:
image: docker.io/library/redis:7.0.0-alpine
container_name: "redis"
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 15