-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.config-pgsql.yml
52 lines (52 loc) · 1.08 KB
/
docker-compose.config-pgsql.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
version: '3'
services:
config:
image: registry.redhat.io/quay/quay-rhel8:v3.6.1
container_name: config
restart: always
privileged: true
networks:
- quay
ports:
- 80:8080
environment:
- DEBUGLOG=false
command:
["config", "redhat"]
depends_on:
- pgsql
- redis
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
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