-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
210 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |