Skip to content

Instantly share code, notes, and snippets.

@nuomi1
Last active August 27, 2021 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuomi1/50128d13de781a5b79ecd5164bbb1c63 to your computer and use it in GitHub Desktop.
Save nuomi1/50128d13de781a5b79ecd5164bbb1c63 to your computer and use it in GitHub Desktop.
docker-compose
version: '3'
services:
FreshRSS:
image: linuxserver/freshrss
restart: always
ports:
- 4000:80
volumes:
- './FreshRSS:/config'
FROM node:9.4.0-slim
LABEL maintainer="nuomi <nuomi1@qq.com>"
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
version: '3'
services:
Gitea:
image: gitea/gitea
restart: always
ports:
- 4000:3000
volumes:
- './Gitea:/data'
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'
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'
#!/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
FROM node
ARG HEXO_VERSION
ARG NEXT_VERSION
ARG NEXT_PATH
LABEL version="Hexo - ${HEXO_VERSION}, NexT - ${NEXT_VERSION}"
LABEL maintainer="nuomi1 <nuomi1@qq.com>"
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
version: "3.9"
services:
HomeAssistant:
image: homeassistant/home-assistant
restart: always
ports:
- 8123:8123
volumes:
- ./HomeAssistant:/config
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
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