-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.quay-pgsql-mirror.yml
69 lines (69 loc) · 1.51 KB
/
docker-compose.quay-pgsql-mirror.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
version: '3'
services:
quay:
image: registry.redhat.io/quay/quay-rhel8:v3.6.1
container_name: quay
restart: always
privileged: true
sysctls:
- net.core.somaxconn=4096
volumes:
- /quay/config:/conf/stack:Z
- /quay/storage:/datastorage:Z
networks:
- quay
ports:
- 443:8443
environment:
- DEBUGLOG=false
- ENCRYPTED_ROBOT_TOKEN_MIGRATION_PHASE=new-installation
depends_on:
- redis
- pgsql
worker:
image: registry.redhat.io/quay/quay-rhel8:v3.6.1
container_name: worker
restart: always
volumes:
- /quay/config:/conf/stack:Z
networks:
- quay
command:
["repomirror"]
depends_on:
- quay
pgsql:
image: registry.redhat.io/rhel8/postgresql-10:1
container_name: pgsql
restart: always
privileged: true
volumes:
- /var/lib/pgsql/data:/var/lib/pgsql/data:Z
- ./post-pgsql.sh:/usr/local/bin/post-pgsql.sh
networks:
- quay
ports:
- 5432:5432
environment:
- POSTGRESQL_USER=quayuser
- POSTGRESQL_PASSWORD=quaypass
- POSTGRESQL_DATABASE=quaydb
- POSTGRESQL_MAX_CONNECTIONS=500
redis:
image: registry.redhat.io/rhel8/redis-5:1
container_name: redis
restart: always
privileged: true
volumes:
- /var/lib/redis:/var/lib/redis/data:Z
networks:
- quay
ports:
- 6379:6379
environment:
- REDIS_PASSWORD=test123
depends_on:
- pgsql
networks:
quay:
external: false