-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1.18 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.9"
services:
web:
image: neildocking/unc-ai-web
privileged: true
#build:
# context: .
#args:
# APP_DIR: /server
working_dir: /server
#restart: unless-stopped
command: [bash]
entrypoint: ["tail", "-f", "/dev/null"]
hostname: uncweb
ports:
- "8029:8080" # web server port mapping
#- "12010-13000:12010-13000" # expose video stream
volumes:
- /tmp/.X11-unix/:/tmp/.X11-unix/
- /dev/video0:/dev/video2 # web cam for testing
- type: bind
source: .
target: /server
read_only: false
depends_on:
- db
environment:
DISPLAY: ${DISPLAY}
DATABASE_URL: postgres://masked_admin:ya8kVY3g5npGv9cLSwrU_m@db/db_covid_protocols
DB_FOR_CLIENT_URL: postgres://unc_client:g1PxL1Lyvd8YqZ0U2x@db/db_covid_protocols
ACTIX_PORT: 8080 # web server port
db:
image: postgres:15.1-alpine
restart: always
ports:
- "25432:5432" # access port for pgAdmin
environment:
POSTGRES_USER: masked_admin
POSTGRES_PASSWORD: ya8kVY3g5npGv9cLSwrU_m # change on production
POSTGRES_DB: db_covid_protocols
POSTGRES_INITDB_ARGS: --encoding=UTF8