forked from packit/packit-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
155 lines (146 loc) · 4.37 KB
/
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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "2"
services:
redis:
image: registry.fedoraproject.org/f31/redis
container_name: redis
ports:
- 6379:6379
user: "123123"
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
environment:
REDIS_HOST: redis
REDIS_PORT: "6379"
ports:
- 8081:8081
depends_on:
- redis
user: "123123"
flower:
image: mher/flower
container_name: flower
ports:
- 5555:5555
depends_on:
- redis
environment:
FLOWER_DEBUG: "True"
CELERY_BROKER_URL: redis://redis:6379/0
user: "123123"
postgres:
container_name: postgres
image: registry.access.redhat.com/rhscl/postgresql-10-rhel7
environment:
POSTGRESQL_USER: packit
POSTGRESQL_PASSWORD: secret-password
POSTGRESQL_DATABASE: packit
ports:
- 5432:5432
worker:
container_name: worker
build:
context: .
dockerfile: files/docker/Dockerfile.worker
args:
SOURCE_BRANCH: main
image: quay.io/packit/packit-worker:dev
command: /usr/bin/run_worker.sh
#tty: true
depends_on:
- redis
- postgres
environment:
DEPLOYMENT: dev
REDIS_SERVICE_HOST: redis
APP: packit_service.worker.tasks
KRB5CCNAME: FILE:/tmp/krb5cc_packit
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
QUEUE_NAME_PREFIX: packit-dev-
POSTGRESQL_USER: packit
POSTGRESQL_PASSWORD: secret-password
POSTGRESQL_HOST: postgres
POSTGRESQL_DATABASE: packit
volumes:
- ./packit_service:/src/packit_service:ro,z
# worker should not require packit-service.yaml
- ./secrets/dev/packit-service.yaml:/home/packit/.config/packit-service.yaml:ro,z
- ./secrets/dev/copr:/home/packit/.config/copr:ro,z
- ./secrets/dev/ssh_config:/packit-ssh/config:ro,z
- ./secrets/dev/id_rsa.pub:/packit-ssh/id_rsa.pub:ro,z
- ./secrets/dev/id_rsa:/packit-ssh/id_rsa:ro,z
- ./secrets/dev/fedora.keytab:/secrets/fedora.keytab:ro,z
- ./secrets/dev/private-key.pem:/secrets/private-key.pem:ro,z
#- .:/src:ro,z
user: "123123"
service:
container_name: service
build:
context: .
dockerfile: files/docker/Dockerfile
args:
SOURCE_BRANCH: main
image: quay.io/packit/packit-service:dev
command: /usr/bin/run_httpd.sh
depends_on:
- redis
- postgres
ports:
- 8443:8443
environment:
DEPLOYMENT: dev
REDIS_SERVICE_HOST: redis
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
QUEUE_NAME_PREFIX: packit-dev-
POSTGRESQL_USER: packit
POSTGRESQL_PASSWORD: secret-password
POSTGRESQL_HOST: postgres
POSTGRESQL_DATABASE: packit
volumes:
- ./packit_service:/usr/local/lib/python3.8/site-packages/packit_service:ro,z
- ./files/packit-httpd.conf:/etc/httpd/conf.d/packit-httpd.conf:ro,z
# There's no secrets/ by default. You have to create (or symlink to other dir) it yourself.
# Make sure to set `command_handler: local` since there is no kube in d-c
- ./secrets/dev/packit-service.yaml:/home/packit/.config/packit-service.yaml:ro,z
- ./secrets/dev/fedora.keytab:/secrets/fedora.keytab:ro,z
- ./secrets/dev/private-key.pem:/secrets/private-key.pem:ro,z
- ./secrets/dev/fullchain.pem:/secrets/fullchain.pem:ro,z
- ./secrets/dev/privkey.pem:/secrets/privkey.pem:ro,z
user: "123123"
fedora-messaging:
container_name: fedora-messaging
image: quay.io/packit/packit-service-fedmsg:dev
depends_on:
- redis
environment:
DEPLOYMENT: dev
FEDORA_MESSAGING_CONF: /home/packit/.config/fedora.toml
REDIS_SERVICE_HOST: redis
volumes:
# get it from secrets
- ./secrets/dev/fedora.toml:/home/packit/.config/fedora.toml:ro,Z
user: "123123"
centosmsg:
container_name: centosmsg
image: quay.io/packit/packit-service-centosmsg:dev
depends_on:
- redis
environment:
DEPLOYMENT: dev
LOG_LEVEL: DEBUG
REDIS_SERVICE_HOST: redis
volumes:
- ./secrets/dev/centos-server-ca.cert:/secrets/centos-server-ca.cert:ro,Z
- ./secrets/dev/centos.cert:/secrets/centos.cert:ro,Z
user: "123123"
adminer:
image: adminer
container_name: adminer
depends_on:
- postgres
ports:
- 8082:8080
user: "123123"