-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 941 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 941 Bytes
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
version: '3.8'
services:
db:
container_name: postgres
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: 123qwe
PGDATA: /var/lib/postgresql/data
POSTGRES_DB: testdb
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5332:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test -d testdb"]
interval: 30s
timeout: 10s
retries: 5
networks:
- backend
test:
image: ${DOCKER_REGISTRY-}test
build:
context: .
dockerfile: TEST/Dockerfile
depends_on:
- db
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__DefaultConnection: Host=db;Port=5432;Database=testdb;Username=test;Password=123qwe
ports:
- "8080:8080"
- "8081:8081"
networks:
- backend
networks:
backend:
driver: bridge
volumes:
db_data: