-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
67 lines (62 loc) · 2.16 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
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.5'
services:
db_postgres:
image: postgres:10.5
container_name: clix_dashboard_postgres
ports:
- '5433:5432'
volumes:
- /home/clix/CLIxDashboard/clix_dashboard_backend/pg_data:/var/lib/postgresql/data
- /home/clix/CLIxDashboard/clix_dashboard_backend/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- POSTGRES_DB=<postgres db name>
- POSTGRES_USER=<postgres db user>
- POSTGRES_PASSWORD=<postgres db password>
flask-api:
container_name: clix_dashboard_backend
restart: always
build:
context: ../clix_dashboard_backend
dockerfile: Dockerfile
args:
DOCKER_UID: <user id of host>
expose:
- "5000"
ports:
- "5001:5000"
volumes:
- /home/clix/CLIxDashboard/clix_dashboard_backend/app:/home/clix_dashboard_backend/app
- /home/clix/CLIxDashboard/clix_dashboard_backend/SchoolImages:/home/clix_dashboard_backend/SchoolImages
- /home/clix/nginx-proxy/nginx-proxy-letsencrypt-data/certs/clixdashboard.tiss.edu:/home/clix_dashboard_backend/app/certificates
depends_on:
- "db_postgres"
# environment:
# - GUNICORN_CMD_ARGS="--certfile=/home/clix_dashboard_backend/app/certificates/crt.pem --keyfile=/home/clix_dashboard_backend/app/certificates/key.pem"
# - VIRTUAL_HOST=cdbackend.tiss.edu
# - VIRTUAL_PORT=5000
# - LETSENCRYPT_HOST=cdbackend.tiss.edu
client:
container_name: clix_dashboard_ui
build:
context: /home/clix/CLIxDashboard/clix_dashboard_ui
dockerfile: Dockerfile
volumes:
- /home/clix/CLIxDashboard/clix_dashboard_ui:/home/node/app
- /home/node/app/node_modules
ports:
- '3000:3000'
depends_on:
- "flask-api"
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- REACT_APP_HOST_URL=https://clixdashboard.tiss.edu:5001
- VIRTUAL_HOST=clixdashboard.tiss.edu
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=clixdashboard.tiss.edu
networks:
default:
external:
name: clix-bridge-network