-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.dss.yml
61 lines (58 loc) · 1.44 KB
/
docker-compose.dss.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
56
57
58
59
60
61
services:
server:
build:
context: .
command: yarn start:web
user: ${CURRENT_USER:-root}
platform: linux/amd64
networks:
- smarthub
ports:
- "8080:8080"
depends_on:
- db
environment:
- POSTGRES_HOST=postgres_docker
- NODE_ENV=dss
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=secretpass
- POSTGRES_DB=ttasmarthub
- DATABASE_URL=postgres://postgres:secretpass@postgres_docker:5432/ttasmarthub
- SESSION_SECRET=notasecret
- BYPASS_SOCKETS="true"
volumes:
- ".:/app:rw"
similarity_api:
build:
context: ./similarity_api
command: gunicorn -w 4 -b 0.0.0.0:8080 app:app --preload
user: ${CURRENT_USER:-root}
platform: linux/amd64
depends_on:
- db
environment:
- POSTGRES_HOST=postgres_docker
- NODE_ENV=dss
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=secretpass
- POSTGRES_DB=ttasmarthub
- DATABASE_URL=postgres://postgres:secretpass@postgres_docker:5432/ttasmarthub
- SESSION_SECRET=notasecret
- BYPASS_SOCKETS="true"
volumes:
- "./similarity_api/src:/app:rw"
ports:
- "9100:8080"
networks:
- smarthub
db:
image: postgres:15.6
container_name: postgres_docker
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secretpass
POSTGRES_DB: ttasmarthub
networks:
- smarthub
networks:
smarthub: