-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.05 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
version: '3.9'
services:
db:
image: postgres:14.1
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- ./.data:/var/lib/postgresql/data
- ./scripts/init-all-dbs.sh:/docker-entrypoint-initdb.d/init-all-dbs.sh
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- db
nk:
image: mcr.microsoft.com/dotnet/sdk:6.0
environment:
- DB_CONN_STRING=Server=db;Database=nk;Username=postgres;Password=postgres
- PORT=1337
expose:
- "1337"
ports:
- "1337:1337"
working_dir: /app
volumes:
- ./nk-server:/app
command: dotnet ${NK_COMMAND}
depends_on:
- db
nk-web:
image: node:16
environment:
- NODE_ENV=development
- BROWSER_ARGS='nk-url=http://localhost:1337'
working_dir: /app
volumes:
- ./nk-js:/app
expose:
- "3600"
ports:
- "3600:3600"
command: npm run ${NKWEB_COMMAND}
depends_on:
- nk