Skip to content

Commit

Permalink
Merge pull request #150 from arayabrain/feature/update-docker-settings
Browse files Browse the repository at this point in the history
update docker settings.
  • Loading branch information
ReiHashimoto authored Sep 5, 2023
2 parents 59d6348 + c7de45f commit f7071cc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- studio/config/.env
volumes:
- db_data:/var/lib/mysql
environment:
TZ: Asia/Tokyo

phpmyadmin:
image: phpmyadmin
Expand All @@ -18,6 +20,8 @@ services:
- studio/config/.env
ports:
- 20080:80
environment:
TZ: Asia/Tokyo

studio-dev-be:
build:
Expand All @@ -43,6 +47,8 @@ services:
ports:
- "3000:3000"
command: ash -c 'yarn install && yarn start'
environment:
TZ: Asia/Tokyo

volumes:
db_data:
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@ services:
- studio/config/.env
volumes:
- db_data:/var/lib/mysql
environment:
TZ: Asia/Tokyo
restart: always

studio:
build:
context: .
dockerfile: studio/config/docker/Dockerfile
working_dir: /app
volumes:
- ../optinist-docker-volumes/.snakemake/:/app/.snakemake
- ../optinist-docker-volumes/logs/:/app/logs
- ../optinist-docker-volumes/studio_data/:/app/studio_data
ports:
- "8000:8000"
command: bash -c "alembic upgrade head && python main.py --host 0.0.0.0 --port 8000"
environment:
PYTHONPATH: /app/
TZ: Asia/Tokyo
OPTINIST_DIR: /app/studio_data
depends_on:
- db
restart: always

volumes:
db_data:
3 changes: 3 additions & 0 deletions studio/config/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ FROM --platform=linux/amd64 python:3.8.16-slim

WORKDIR /app

RUN echo 'alias ll="ls -la"' >> ~/.bashrc

RUN mkdir -p /root/miniconda3 && \
apt-get --allow-releaseinfo-change update && \
apt-get install --no-install-recommends -y gcc g++ libgl1 libgl1-mesa-dev && \
apt-get install --no-install-recommends -y procps iproute2 less vim && \
apt-get install --no-install-recommends -y wget && \
wget -q https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
apt-get purge wget -y && apt-get autoremove -y && apt-get clean && \
Expand Down
3 changes: 3 additions & 0 deletions studio/config/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ FROM --platform=linux/amd64 python:3.8.16-slim

WORKDIR /app

RUN echo 'alias ll="ls -la"' >> ~/.bashrc

RUN mkdir -p /root/miniconda3 && \
apt-get --allow-releaseinfo-change update && \
apt-get install --no-install-recommends -y procps iproute2 less vim && \
apt-get install --no-install-recommends -y wget && \
wget -q https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh && \
apt-get purge wget -y && apt-get autoremove -y && apt-get clean && \
Expand Down

0 comments on commit f7071cc

Please sign in to comment.