Last active
August 27, 2021 13:16
-
-
Save nuomi1/50128d13de781a5b79ecd5164bbb1c63 to your computer and use it in GitHub Desktop.
docker-compose
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
version: '3' | |
services: | |
FreshRSS: | |
image: linuxserver/freshrss | |
restart: always | |
ports: | |
- 4000:80 | |
volumes: | |
- './FreshRSS:/config' |
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
FROM node:9.4.0-slim | |
LABEL maintainer="nuomi <[email protected]>" | |
ENV GITBOOK_CLI_VERSION 2.3.2 | |
ENV GITBOOK_VERSION 3.2.3 | |
RUN npm install --global gitbook-cli@${GITBOOK_CLI_VERSION} && \ | |
gitbook fetch ${GITBOOK_VERSION} | |
RUN apt-get update && \ | |
apt-get install -y python xdg-utils | |
ENV CALIBRE_VERSION 3.16.0 | |
ADD calibre-${CALIBRE_VERSION}-x86_64.txz /opt/calibre | |
RUN /opt/calibre/calibre_postinstall | |
WORKDIR ~/.gitbook | |
VOLUME ~/GitBook/Library/Import/ruanyf-road ~/.gitbook | |
EXPOSE 4000 35729 | |
CMD gitbook serve |
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
version: '3' | |
services: | |
Gitea: | |
image: gitea/gitea | |
restart: always | |
ports: | |
- 4000:3000 | |
volumes: | |
- './Gitea:/data' |
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
version: '3' | |
services: | |
GitLab: | |
image: gitlab/gitlab-ce | |
restart: always | |
ports: | |
- 4000:80 | |
volumes: | |
- './GitLab/config:/etc/gitlab' | |
- './GitLab/log:/var/log/gitlab' | |
- './GitLab/data:/var/opt/gitlab' |
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
version: '3' | |
services: | |
Hexo: | |
build: | |
context: . | |
args: | |
- HEXO_VERSION: '3.7.1' | |
- NEXT_VERSION: '6.4.2' | |
- NEXT_PATH: 'themes/next' | |
image: 'nuomi1/hexo:3.7.1_6.4.2' | |
restart: always | |
ports: | |
- 4000:4000 | |
volumes: | |
- './Hexo:/blog' |
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
#!/usr/bin/env bash | |
if [ ! -f "_config.yml" ]; then | |
hexo init . | |
fi | |
if [ ! -f "${NEXT_PATH}/_config.yml" ]; then | |
git clone -b v${NEXT_VERSION} https://github.com/theme-next/hexo-theme-next.git ${NEXT_PATH} | |
fi | |
hexo server |
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
FROM node | |
ARG HEXO_VERSION | |
ARG NEXT_VERSION | |
ARG NEXT_PATH | |
LABEL version="Hexo - ${HEXO_VERSION}, NexT - ${NEXT_VERSION}" | |
LABEL maintainer="nuomi1 <[email protected]>" | |
WORKDIR /blog | |
COPY docker-entrypoint.sh /usr/bin | |
RUN npm install -g hexo-cli && \ | |
chmod +x /usr/bin/docker-entrypoint.sh | |
ENTRYPOINT docker-entrypoint.sh | |
EXPOSE 4000 | |
VOLUME /blog |
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
version: "3.9" | |
services: | |
HomeAssistant: | |
image: homeassistant/home-assistant | |
restart: always | |
ports: | |
- 8123:8123 | |
volumes: | |
- ./HomeAssistant:/config |
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
version: "3.9" | |
services: | |
Portainer: | |
image: portainer/portainer-ce | |
restart: always | |
ports: | |
- 8000:8000 | |
- 9000:9000 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- ./Portainer:/data |
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
version: '3' | |
services: | |
MySQL: | |
image: mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress | |
# MYSQL_DATABASE: wordpress | |
# MYSQL_USER: wordpress | |
# MYSQL_PASSWORD: wordpress | |
volumes: | |
- './MySQL:/var/lib/mysql' | |
WordPress: | |
image: wordpress | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: MySQL:3306 | |
# WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
ports: | |
- 4000:80 | |
volumes: | |
- './WordPress:/var/www/html' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment