-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# VFF — Services de données (dev local)
#
# Seuls Postgres+PostGIS et Valkey sont conteneurisés.
# L'app Laravel et Vite tournent sur l'hôte via `composer run dev` et `pnpm install`.
#
# Démarrage : `make up` (ou `docker compose up -d`)
# Services exposés sur l'hôte :
# - postgres://localhost:5432 (utilisateur=vff mdp=vff base=vff)
# - valkey://localhost:6379 (compatible RESP / Redis)
# - http://localhost:8080 (Adminer — UI Postgres)
name: vff
services:
db:
image: postgis/postgis:18-3.6-alpine
container_name: vff-db
restart: unless-stopped
shm_size: 256mb
environment:
POSTGRES_DB: ${DB_DATABASE:-vff}
POSTGRES_USER: ${DB_USERNAME:-vff}
POSTGRES_PASSWORD: ${DB_PASSWORD:-vff}
PGDATA: /var/lib/postgresql/data
volumes:
- vff_db:/var/lib/postgresql/data
- ./docker/postgres/init:/docker-entrypoint-initdb.d:ro
ports:
- "${DB_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-vff} -d ${DB_DATABASE:-vff}"]
interval: 5s
timeout: 3s
retries: 10
valkey:
image: valkey/valkey:8-alpine
container_name: vff-valkey
restart: unless-stopped
command: ["valkey-server", "--appendonly", "yes"]
volumes:
- vff_valkey:/data
ports:
- "${VALKEY_PORT:-6379}:6379"
healthcheck:
test: ["CMD", "valkey-cli", "PING"]
interval: 5s
timeout: 3s
retries: 5
adminer:
image: adminer:5
container_name: vff-adminer
restart: unless-stopped
environment:
ADMINER_DEFAULT_SERVER: db
ADMINER_DESIGN: dracula
ports:
- "${ADMINER_PORT:-8080}:8080"
depends_on:
- db
volumes:
vff_db:
vff_valkey: