-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (55 loc) · 1.5 KB
/
docker-compose.yml
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
services:
db:
image: postgres:15
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
ports:
- 5432:5432
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.32.0
volumes:
- azurite:/data
ports:
- "10000:10000"
healthcheck:
test: nc -z 127.0.0.1 10000
interval: 5s
timeout: 5s
retries: 10
web:
build: .
environment:
- LOGGING_FILE=/usr/src/app/log/liionsden
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_NAME=postgres
- POSTGRES_HOST=db
- ADMIN_PASSWORD=password
- AZURE_STORAGE_CONTAINER=test
- AZURE_STORAGE_ACCOUNT_NAME=devstoreaccount1
- AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;
- PRIVACY_NOTICE_SAS_URL
volumes:
- .:/usr/src/app
- ./log:/usr/src/app/log
ports:
- 8000:8000
- 2222:2222
- 3000:3000
depends_on:
db:
condition: service_healthy
azurite:
condition: service_healthy
volumes:
azurite:
db: