-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (43 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
51 lines (43 loc) · 1.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
name: tuynuk
networks:
tuynuk_network:
driver: bridge
services:
tuynuk_api:
image: ${DOCKER_REGISTRY-}tuynuk-api
container_name: tuynuk-api
build:
context: .
dockerfile: Tuynuk.Api/Dockerfile
ports:
- "8088:8088"
# - "8089:8089"
depends_on:
tuynuk_postgres_db:
condition: service_healthy
networks:
- tuynuk_network
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__POSTGRES=Server=tuynuk-postgres-db;Port=5432;Database=tuynuk-db;User ID=postgres;Password=q1w2e3r4Z;
tuynuk_postgres_db:
image: postgres:16.3
container_name: tuynuk-postgres-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=q1w2e3r4Z
- POSTGRES_DB=tuynuk-db
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 5s
timeout: 5s
retries: 5
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- tuynuk_network
volumes:
postgres_data: