1
|
version: '3.7'
|
2
|
|
3
|
services:
|
4
|
db:
|
5
|
image: postgres
|
6
|
container_name: annotool-db
|
7
|
volumes:
|
8
|
- annotool-data:/var/lib/postgresql/data/
|
9
|
ports:
|
10
|
- '5432:5432'
|
11
|
environment:
|
12
|
- POSTGRES_DB=annotool-db
|
13
|
- POSTGRES_USER=root
|
14
|
- POSTGRES_PASSWORD=HEun3RGgEYwknRuk4adh4ZKW
|
15
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
16
|
shm_size: 256MB
|
17
|
|
18
|
server:
|
19
|
container_name: annotool-server
|
20
|
build:
|
21
|
dockerfile: ./Backend/Dockerfile
|
22
|
context: ./Backend
|
23
|
ports:
|
24
|
- '8080:80'
|
25
|
environment:
|
26
|
- ConnectionString=Host=annotool-db:5432;Database=annotool-db;Username=root;Password=HEun3RGgEYwknRuk4adh4ZKW
|
27
|
depends_on:
|
28
|
- db
|
29
|
|
30
|
client:
|
31
|
container_name: annotool-client
|
32
|
build:
|
33
|
dockerfile: ./Dockerfile
|
34
|
context: ./webapp
|
35
|
environment:
|
36
|
- ASWI_APP_BACKEND_URL=http://localhost:8080
|
37
|
ports:
|
38
|
- '80:5000'
|
39
|
|
40
|
volumes:
|
41
|
annotool-data:
|