-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (49 loc) · 1.2 KB
/
Copy pathcompose.yaml
File metadata and controls
51 lines (49 loc) · 1.2 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
services:
http_service:
build:
context: servers/demo_http
ports:
- '8000:80'
ftp_service:
build:
context: servers/demo_ftp
ports:
- '21:21'
- "60000-60010:60000-60010" # passive port for file transfer (10 connections max)
volumes:
- ftp_service_volume:/home/files
api:
build:
context: backend/NetboardApi
target: final
ports:
- "5043:8080"
container_name: netboard_api
hostname: netboard_api_host
environment:
- ASPNETCORE_ENVIRONMENT=Development # todo: change to production
- ConnectionStrings__DefaultConnection=${POSTGRES_CONNECTION_STRING}
depends_on:
db:
condition: service_healthy
restart: true
db:
image: postgres
ports:
- "5432:5432"
container_name: netboard_db
hostname: netboard_db_host
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- netboard_data:/var/lib/postgresql/data
volumes:
ftp_service_volume:
netboard_data: