-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodman-compose.dev.yml
More file actions
46 lines (42 loc) · 1.25 KB
/
Copy pathpodman-compose.dev.yml
File metadata and controls
46 lines (42 loc) · 1.25 KB
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
# FlexGate — Dev Infrastructure Only
# Runs postgres + redis on the flexgate-ci bridge network so both
# the Jenkins container and these services can communicate directly
# by container name without port publishing.
#
# Usage: podman-compose -f podman-compose.dev.yml up -d
version: '3.8'
networks:
flexgate-ci:
external: true
services:
postgres:
image: docker.io/library/postgres:15-alpine
container_name: flexgate-postgres
networks:
- flexgate-ci
environment:
POSTGRES_DB: ${POSTGRES_DB:-flexgate}
POSTGRES_USER: ${POSTGRES_USER:-flexgate}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-flexgate}
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-flexgate} -d ${POSTGRES_DB:-flexgate}"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: docker.io/library/redis:7-alpine
container_name: flexgate-redis
networks:
- flexgate-ci
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
postgres-data: