-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (71 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
79 lines (71 loc) · 2.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.4'
name: terroristchecker
services:
terroristchecker.api:
container_name: terroristchecker.api
ports:
- "7081:7081"
- "7082:7082"
image: ${DOCKER_REGISTRY-}terroristchecker-api
build:
context: .
dockerfile: TerroristChecker.Api/Dockerfile
depends_on:
terroristchecker.database.server:
condition: service_healthy
terroristchecker.cache:
condition: service_started
restart: unless-stopped
terroristchecker.database.server:
container_name: terroristchecker.database.server
ports:
- "5432:5432"
image: postgres:16.3-alpine3.20
environment:
- POSTGRES_DB=terrorists
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=123
volumes:
- ./TerroristChecker.Persistence/Data/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- ./TerroristChecker.Persistence/Data/terrorists.csv:/docker-entrypoint-initdb.d/terrorists.csv
- terrorists_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d terrorists -U admin"]
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
terroristchecker.database.server.pgadmin:
container_name: terroristchecker.database.server.pgadmin
ports:
- 7083:80
image: dpage/pgadmin4:8.8
environment:
- PGADMIN_DEFAULT_EMAIL=admin@gmail.com
- PGADMIN_DEFAULT_PASSWORD=123
- PGADMIN_LISTEN_PORT=80
volumes:
- pgadmin_data:/home/rundeck/server/data
- pgadmin:/var/lib/pgadmin
restart: unless-stopped
terroristchecker.cache:
container_name: terroristchecker.cache
ports:
- "6379:6379"
image: redis:7.2.5
restart: unless-stopped
volumes:
- cache:/data
volumes:
terrorists_db:
name: terroristchecker_database
pgadmin_data:
name: terroristchecker_database_server_pgadmin_data
pgadmin:
name: terroristchecker_database_server_pgadmin
cache:
name: terroristchecker_cache
networks:
default:
name: terroristchecker