-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 1.04 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
services:
postgres:
image: postgres:15
container_name: sk_postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Scripts d'initialisation des bases de données
- ./init-ticketdb.sql:/docker-entrypoint-initdb.d/1-init-ticketdb.sql
- ./init-agentdb.sql:/docker-entrypoint-initdb.d/2-init-agentdb.sql
networks:
- sk-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
command: ["postgres", "-c", "log_statement=all"]
pgadmin:
image: dpage/pgadmin4
container_name: sk_pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "8042:80"
depends_on:
postgres:
condition: service_healthy
networks:
- sk-network
volumes:
postgres_data:
name: sk_postgres_data
networks:
sk-network:
driver: bridge