Skip to content

Commit

Permalink
aupdated docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
avikdatta committed May 22, 2023
1 parent 018569d commit 6b20414
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 8 deletions.
134 changes: 134 additions & 0 deletions docker-compose-igf-lims_v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
version: '3.9'
networks:
portal_network:
driver: bridge
services:
portal_db:
image: mysql:5.7
env_file: env
restart: unless-stopped
ports:
- "3308:3306"
logging:
driver: "json-file"
options:
max-size: "2048m"
volumes:
- /home/igf/igf_portal/portal_v2/mysqlappdb:/var/lib/mysql:rw
container_name: portal_db
networks:
- portal_network
redis_db:
image: redis:6.2
restart: unless-stopped
container_name: redis_db
logging:
driver: "json-file"
options:
max-size: "2048m"
networks:
- portal_network
webserver:
image: imperialgenomicsfacility/igfportal:v0.0.2.1
env_file: env
logging:
driver: "json-file"
options:
max-size: "2048m"
restart: unless-stopped
links:
- portal_db
- redis_db
depends_on:
- portal_db
- redis_db
volumes:
- /home/igf/igf_portal/portal_v2/IGFPortal:/github/IGFPortal:ro
- /home/igf/igf_portal/ssl_cert:/SSL:ro
- /home/igf/igf_portal/portal_v2/static:/data/static:rw
- /home/igf/igf_portal/secret/airflow_conf.json:/secret/airflow_conf.json:ro
- /tmp:/TMP_WORK_DIR:rw
container_name: webserver
command: ["gunicorn -b 0.0.0.0:8080 --threads 4 server:app"]
networks:
- portal_network
nginx:
image: nginx:1.23.3
logging:
driver: "json-file"
options:
max-size: "2048m"
ports:
- "80:80"
- "443:443"
links:
- webserver
depends_on:
- webserver
volumes:
- /home/igf/igf_portal/ssl_cert:/SSL:ro
- /home/igf/igf_portal/portal_v2/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /home/igf/igf_portal/portal_v2/nginx:/var/nginx/:rw
- /home/igf/igf_portal/portal_v2/static:/data/static:rw
container_name: nginx
restart: unless-stopped
networks:
- portal_network
celery_worker1:
image: imperialgenomicsfacility/igfportal:v0.0.2.1
env_file: env
logging:
driver: "json-file"
options:
max-size: "2048m"
links:
- portal_db
- redis_db
depends_on:
- portal_db
- redis_db
restart: unless-stopped
volumes:
- /home/igf/igf_portal/portal_v2/IGFPortal:/github/IGFPortal:ro
- /home/igf/igf_portal/secret/airflow_conf.json:/secret/airflow_conf.json:ro
- /tmp:/TMP_WORK_DIR:rw
container_name: celery_worker1
command: ["celery -A app.celery worker --loglevel=WARNING"]
networks:
- portal_network
celery_flower:
image: imperialgenomicsfacility/igfportal:v0.0.2.1
env_file: env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "2048m"
ports:
- "5556:5555"
links:
- redis_db
- portal_db
depends_on:
- redis_db
- portal_db
volumes:
- /home/igf/igf_portal/portal_v2/IGFPortal:/github/IGFPortal:ro
container_name: celery_flower
command: ["celery -A app.celery flower --basic_auth=$${BASIC_AUTH}"]
networks:
- portal_network
adminer:
image: adminer:latest
logging:
driver: "json-file"
options:
max-size: "2048m"
links:
- portal_db
ports:
- "8081:8080"
restart: unless-stopped
container_name: adminer
networks:
- portal_network
32 changes: 32 additions & 0 deletions docker-compose-igf-lims_v2_db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.9'
networks:
portal_network:
driver: bridge
services:
portal_db:
image: mysql:5.7
env_file: env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "2048m"
volumes:
- /home/igf/igf_portal/portal_v2/mysqlappdb:/var/lib/mysql:rw
container_name: portal_db
networks:
- portal_network
adminer:
image: adminer:latest
logging:
driver: "json-file"
options:
max-size: "2048m"
links:
- portal_db
ports:
- "8081:8080"
restart: unless-stopped
container_name: adminer
networks:
- portal_network
16 changes: 8 additions & 8 deletions docker-compose-igfportal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ services:
portal_db:
image: mysql:5.7
env_file: env
restart: always
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "2048m"
volumes:
- /home/igf/dev/mysqlappdb:/var/lib/mysql:rw
- /home/igf/dev/mysqlappdb_v2:/var/lib/mysql:rw
container_name: portal_db
networks:
- portal_network
redis_db:
image: redis:6.2
restart: always
restart: unless-stopped
container_name: redis_db
logging:
driver: "json-file"
Expand All @@ -37,7 +37,7 @@ services:
max-size: "2048m"
ports:
- 8080:8080
restart: always
restart: unless-stopped
links:
- portal_db
- redis_db
Expand Down Expand Up @@ -73,7 +73,7 @@ services:
- /home/igf/dev/nginx:/var/nginx/:rw
- /home/igf/dev/static:/data/static:rw
container_name: nginx
restart: always
restart: unless-stopped
networks:
- portal_network
celery_worker1:
Expand All @@ -89,7 +89,7 @@ services:
depends_on:
- portal_db
- redis_db
restart: always
restart: unless-stopped
volumes:
- /home/igf/dev/IGFPortal:/github/IGFPortal:ro
- /home/igf/dev/secret/airflow_conf.json:/secret/airflow_conf.json:ro
Expand All @@ -101,7 +101,7 @@ services:
celery_flower:
image: imperialgenomicsfacility/igfportal:v0.0.2.1
env_file: env
restart: always
restart: unless-stopped
logging:
driver: "json-file"
options:
Expand Down Expand Up @@ -130,7 +130,7 @@ services:
- portal_db
ports:
- "8081:8080"
restart: always
restart: unless-stopped
container_name: adminer
networks:
- portal_network
32 changes: 32 additions & 0 deletions docker-compose-igfportal_db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.9'
networks:
portal_network:
driver: bridge
services:
portal_db:
image: mysql:5.7
env_file: env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "2048m"
volumes:
- /home/igf/dev/mysqlappdb_v2:/var/lib/mysql:rw
container_name: portal_db
networks:
- portal_network
adminer:
image: adminer:latest
logging:
driver: "json-file"
options:
max-size: "2048m"
links:
- portal_db
ports:
- "8081:8080"
restart: unless-stopped
container_name: adminer
networks:
- portal_network
2 changes: 2 additions & 0 deletions docker_start_igf_lims_v2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#docker-compose -f docker-compose-igfportal_v2.yaml -p igfportal_v2 up -d
docker-compose -f docker-compose-igfportal_v2_db.yaml -p igfportal_v2 up -d
2 changes: 2 additions & 0 deletions docker_start_igfportal_v2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#docker compose -f docker-compose-igfportal_db.yaml -p igfportal up -d
docker compose -f docker-compose-igfportal.yaml -p igfportal up -d

0 comments on commit 6b20414

Please sign in to comment.