-
Notifications
You must be signed in to change notification settings - Fork 82
/
docker-compose.yml
41 lines (40 loc) · 1.11 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
version: '3.4'
services:
db:
image: postgres:alpine
environment:
POSTGRES_DB: dwkit-hrm
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbuserpassword
volumes:
- dbdata:/var/lib/postgresql/data
restart: always
ports:
- "5432"
start_db:
image: jbergknoff/postgresql-client
depends_on:
- db
volumes:
- ./docker-files:/home/.docker
entrypoint: /home/.docker/wait-for-postgres.sh db dbuser dbuserpassword dwkit-hrm
dwkit_starterpack:
depends_on:
- db
ports:
- "48800:80"
build: .
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__default: HOST=db;User ID=dbuser;Password=dbuserpassword;Database=dwkit-hrm;Port=5432
DWKit__MetadataPath: /home/metadata/
DWKit__LicensePath: /home/license/
DWKit__CreateDatabaseObjects: "true"
DWKit__DatabaseScriptList: /home/sql/PostgreSQL/create_db.txt
volumes:
- ./sql:/home/sql
- ./metadata:/home/metadata
- ./aspnet-keys:/root/.aspnet/DataProtection-Keys
- ./license:/home/license
volumes:
dbdata: