-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathcontainer-compose.yml
78 lines (73 loc) · 1.78 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
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
version: "2.0"
services:
anitya-web:
image: anitya-base
build:
context: .
dockerfile: Containerfile.dev
args:
FEDORA_VERSION: 40
container_name: "anitya-web"
ports:
- "127.0.0.1:5000:5000"
volumes:
- .:/app:z
restart: unless-stopped
environment:
- ANITYA_WEB_CONFIG=anitya.toml
- FLASK_APP=anitya.wsgi
- FLASK_DEBUG=1
- START_COMMAND=flask run -h 0.0.0.0
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5000" ]
interval: 3s
timeout: 3s
retries: 30
depends_on:
postgres:
condition: service_started
rabbitmq:
condition: service_started
anitya-check-service:
image: anitya-base
container_name: "anitya-check-service"
volumes:
- .:/app:z
restart: unless-stopped
environment:
- ANITYA_WEB_CONFIG=anitya.toml
- START_COMMAND=check_service
depends_on:
postgres:
condition: service_started
rabbitmq:
condition: service_started
rabbitmq:
image: docker.io/library/rabbitmq:3.8.16-management-alpine
container_name: "rabbitmq"
restart: unless-stopped
ports:
- "15672:15672"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 3s
timeout: 3s
retries: 30
environment:
- RABBITMQ_DEFAULT_USER=anitya
- RABBITMQ_DEFAULT_PASS=anitya
postgres:
image: docker.io/library/postgres:13.4
container_name: "postgres"
user: postgres
volumes:
- .container/dump:/dump:z
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 3s
timeout: 3s
retries: 30
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=anypasswordworkslocally
- POSTGRES_DB=anitya