forked from Pardhu448/CLIxDashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (62 loc) · 2.38 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/migrations:/home/clix_dashboard_backend/migrations
- /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"
client:
container_name: clix_dashboard_ui
build:
context: /home/clix/CLIxDashboard/clix_dashboard_ui
dockerfile: Dockerfile
volumes:
- /home/clix/CLIxDashboard/clix_dashboard_ui/node_modules:/home/node/app/node_modules
- /home/clix/CLIxDashboard/clix_dashboard_ui/package.json:/home/node/app/package.json
- /home/clix/CLIxDashboard/clix_dashboard_ui/package-lock.json:/home/node/app/package-lock.json
- /home/clix/CLIxDashboard/clix_dashboard_ui/public:/home/node/app/public
- /home/clix/CLIxDashboard/clix_dashboard_ui/src:/home/node/app/src
- /home/node/app/node_modules
ports:
- '3000:3000'
depends_on:
- "flask-api"
environment:
- NODE_ENV=production
- CHOKIDAR_USEPOLLING=true
#- REACT_APP_HOST_URL=<Url of backend container>
#add below lines if you are using nginx-proxy container with letsencrypt
- VIRTUAL_HOST=<Url of container>
- VIRTUAL_PORT=<host port of container>
- LETSENCRYPT_HOST=<hostname of container>
- LETSENCRYPT_EMAIL=<configured email>
networks:
default:
external:
name: clix-bridge-network