-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (51 loc) · 1.26 KB
/
docker-compose.dev.yml
File metadata and controls
52 lines (51 loc) · 1.26 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
name: Gns3LabLauncher
services:
postgres:
image: postgres:17
container_name: postgres
restart: unless-stopped
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- "${ROOT_DATA_DIR}/db/postgres:/var/lib/postgresql/data"
networks:
- gns3netlab-network
healthcheck:
test:
["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
deploy:
restart_policy:
condition: any
delay: "5s"
window: "60s"
redis:
image: redis:8.0-rc1
container_name: redis
restart: unless-stopped
ports:
- "${REDIS_PORT}:6379"
networks:
- gns3netlab-network
command: redis-server --save 60 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
volumes:
- "${ROOT_DATA_DIR}/db/redis:/data"
healthcheck:
test: ["CMD", "redis-cli", "--pass", "${REDIS_PASSWORD}", "ping"]
interval: 5s
timeout: 5s
retries: 10
deploy:
restart_policy:
condition: any
delay: "5s"
window: "60s"
networks:
gns3netlab-network:
driver: bridge