Last active
August 30, 2018 03:06
-
-
Save nobiki/24ecf417fe4292edf01698b5f3642edd to your computer and use it in GitHub Desktop.
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: "2" | |
services: | |
## | |
# Debian Workspace | |
## | |
# 9zilla: | |
# container_name: 9zilla | |
# hostname: 9zilla | |
# image: nobiki/9zilla:latest | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.100 | |
# ports: | |
# - "80:80" | |
# - "443:443" | |
# - "19022:22" | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# volumes: | |
# ### example - Linux | |
# - /var/containers/:/var/containers/ | |
# - /var/containers/9zilla/var/workspace/:/var/workspace/ | |
# - /var/containers/9zilla/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# ### example - Barge | |
# # - /home/bargee/containers/:/var/containers/ | |
# # - /home/bargee/containers/9zilla/var/workspace/:/var/workspace/ | |
# # - /home/bargee/containers/9zilla/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# ### example - Docker for Mac | |
# # - /private/var/containers/:/var/containers/ | |
# # - /private/var/containers/9zilla/var/workspace/:/var/workspace/ | |
# # - /private/var/containers/9zilla/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# volumes_from: | |
# - 9zilla-volume-anyenv | |
# - 9zilla-volume-contents | |
# privileged: true | |
# tty: true | |
## | |
# Nginx Proxy | |
## | |
9zilla-nginx-proxy: | |
container_name: 9zilla-nginx-proxy | |
hostname: 9zilla-nginx-proxy | |
image: nginx:1.15.3 | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.101 | |
ports: | |
- "80:80" | |
- "443:443" | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-nginx-proxy/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-nginx-proxy/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-nginx-proxy/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
privileged: true | |
tty: true | |
## | |
# Data Volume (.90) | |
## | |
9zilla-volume-anyenv: | |
container_name: 9zilla-volume-anyenv | |
hostname: 9zilla-volume-anyenv | |
image: nobiki/9zilla-volume-anyenv:latest | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.90 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
- /home/9zilla/.anyenv/ | |
### example - Linux | |
- /var/containers/9zilla-volume-anyenv/home/9zilla/.anyenv/envs/:/home/9zilla/.anyenv/envs/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-volume-anyenv/home/9zilla/.anyenv/envs/:/home/9zilla/.anyenv/envs/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-volume-anyenv/home/9zilla/.anyenv/envs/:/home/9zilla/.anyenv/envs/ | |
9zilla-volume-contents: | |
container_name: 9zilla-volume-contents | |
hostname: 9zilla-volume-contents | |
image: busybox | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.91 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-volume-contents/var/virtualdomains/:/var/virtualdomains/ | |
- /var/containers/9zilla-volume-contents/var/jenkins_home/:/var/jenkins_home/ | |
- /var/containers/9zilla-volume-contents/var/java_home/:/var/java_home/ | |
- /var/containers/9zilla-volume-contents/etc/pki/tls/certs/:/etc/pki/tls/certs/ | |
- /var/containers/9zilla-volume-contents/etc/letsencrypt/:/etc/letsencrypt/ | |
- /var/containers/9zilla-volume-contents/opt/robotframework/reports/:/opt/robotframework/reports/:Z | |
- /var/containers/9zilla-volume-contents/opt/robotframework/tests/:/opt/robotframework/tests/:Z | |
### example - Barge | |
# - /home/bargee/containers/9zilla-volume-contents/var/virtualdomains/:/var/virtualdomains/ | |
# - /home/bargee/containers/9zilla-volume-contents/var/jenkins_home/:/var/jenkins_home/ | |
# - /home/bargee/containers/9zilla-volume-contents/var/java_home/:/var/java_home/ | |
# - /home/bargee/containers/9zilla-volume-contents/etc/pki/tls/certs/:/etc/pki/tls/certs/ | |
# - /home/bargee/containers/9zilla-volume-contents/etc/letsencrypt/:/etc/letsencrypt/ | |
# - /home/bargee/containers/9zilla-volume-contents/opt/robotframework/reports/:/opt/robotframework/reports/:Z | |
# - /home/bargee/containers/9zilla-volume-contents/opt/robotframework/tests/:/opt/robotframework/tests/:Z | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-volume-contents/var/virtualdomains/:/var/virtualdomains/ | |
# - /private/var/containers/9zilla-volume-contents/var/jenkins_home/:/var/jenkins_home/ | |
# - /private/var/containers/9zilla-volume-contents/var/java_home/:/var/java_home/ | |
# - /private/var/containers/9zilla-volume-contents/etc/pki/tls/certs/:/etc/pki/tls/certs/ | |
# - /private/var/containers/9zilla-volume-contents/etc/letsencrypt/:/etc/letsencrypt/ | |
# - /private/var/containers/9zilla-volume-contents/opt/robotframework/reports/:/opt/robotframework/reports/:Z | |
# - /private/var/containers/9zilla-volume-contents/opt/robotframework/tests/:/opt/robotframework/tests/:Z | |
9zilla-volume-database: | |
container_name: 9zilla-volume-database | |
hostname: 9zilla-volume-database | |
image: busybox | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.92 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-volume-database/var/lib/postgresql/data/:/var/lib/postgresql/data/ | |
- /var/containers/9zilla-volume-database/var/lib/mysql/:/var/lib/mysql/ | |
- /var/containers/9zilla-volume-database/data/:/data/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-volume-database/var/lib/postgresql/data/:/var/lib/postgresql/data/ | |
# - /home/bargee/containers/9zilla-volume-database/var/lib/mysql/:/var/lib/mysql/ | |
# - /home/bargee/containers/9zilla-volume-database/data/:/data/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-volume-database/var/lib/postgresql/data/:/var/lib/postgresql/data/ | |
# - /private/var/containers/9zilla-volume-database/var/lib/mysql/:/var/lib/mysql/ | |
# - /private/var/containers/9zilla-volume-database/data/:/data/ | |
9zilla-volume-repository: | |
container_name: 9zilla-volume-repository | |
hostname: 9zilla-volume-repository | |
image: busybox | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.93 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-volume-repository/repos/:/repos/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-volume-repository/repos/:/repos/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-volume-repository/repos/:/repos/ | |
## | |
# Web Server (.10) | |
## | |
# 9zilla-lamp: | |
# container_name: 9zilla-lamp | |
# hostname: 9zilla-lamp | |
# image: nobiki/9zilla-lamp:latest | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.10 | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# volumes: | |
# ### example - Linux | |
# - /var/containers/9zilla-lamp/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /var/containers/9zilla-lamp/etc/apache2/sites-available/:/etc/apache2/sites-available/ | |
# - /var/containers/9zilla-lamp/etc/apache2/sites-enabled/:/etc/apache2/sites-enabled/ | |
# ### example - Barge | |
# # - /home/bargee/containers/9zilla-lamp/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# # - /home/bargee/containers/9zilla-lamp/etc/apache2/sites-available/:/etc/apache2/sites-available/ | |
# # - /home/bargee/containers/9zilla-lamp/etc/apache2/sites-enabled/:/etc/apache2/sites-enabled/ | |
# ### example - Docker for Mac | |
# # - /private/var/containers/9zilla-lamp/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# # - /private/var/containers/9zilla-lamp/etc/apache2/sites-available/:/etc/apache2/sites-available/ | |
# # - /private/var/containers/9zilla-lamp/etc/apache2/sites-enabled/:/etc/apache2/sites-enabled/ | |
# volumes_from: | |
# - 9zilla-volume-anyenv | |
# - 9zilla-volume-contents | |
9zilla-nginx-ruby: | |
container_name: 9zilla-nginx-ruby | |
hostname: 9zilla-nginx-ruby | |
image: nobiki/9zilla-nginx-ruby:latest | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.11 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-nginx-ruby/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
- /var/containers/9zilla-nginx-ruby/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-nginx-ruby/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /home/bargee/containers/9zilla-nginx-ruby/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-nginx-ruby/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /private/var/containers/9zilla-nginx-ruby/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
volumes_from: | |
- 9zilla-volume-anyenv | |
- 9zilla-volume-contents | |
9zilla-nginx-python: | |
container_name: 9zilla-nginx-python | |
hostname: 9zilla-nginx-python | |
image: nobiki/9zilla-nginx-python:latest | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.12 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-nginx-python/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
- /var/containers/9zilla-nginx-python/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
- /var/containers/9zilla-nginx-python/etc/uwsgi/vassals/:/etc/uwsgi/vassals/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-nginx-python/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /home/bargee/containers/9zilla-nginx-python/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# - /home/bargee/containers/9zilla-nginx-python/etc/uwsgi/vassals/:/etc/uwsgi/vassals/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-nginx-python/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /private/var/containers/9zilla-nginx-python/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# - /private/var/containers/9zilla-nginx-python/etc/uwsgi/vassals/:/etc/uwsgi/vassals/ | |
volumes_from: | |
- 9zilla-volume-anyenv | |
- 9zilla-volume-contents | |
9zilla-nginx-php: | |
container_name: 9zilla-nginx-php | |
hostname: 9zilla-nginx-php | |
image: nobiki/9zilla-nginx-php:latest | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.13 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-nginx-php/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
- /var/containers/9zilla-nginx-php/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
- /var/containers/9zilla-nginx-php/etc/php-fpm/php-fpm.d/:/etc/php-fpm/php-fpm.d/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-nginx-php/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /home/bargee/containers/9zilla-nginx-php/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# - /home/bargee/containers/9zilla-nginx-php/etc/php-fpm/php-fpm.d/:/etc/php-fpm/php-fpm.d/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-nginx-php/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /private/var/containers/9zilla-nginx-php/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# - /private/var/containers/9zilla-nginx-php/etc/php-fpm/php-fpm.d/:/etc/php-fpm/php-fpm.d/ | |
volumes_from: | |
- 9zilla-volume-anyenv | |
- 9zilla-volume-contents | |
## | |
# Database (.30) | |
## | |
# my-gandamu: | |
# container_name: my-gandamu | |
# hostname: my-gandamu | |
# image: mysql:5.6 | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.30 | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# - "MYSQL_ROOT_PASSWORD=root" | |
# volumes: | |
# ### example - Linux | |
# - /var/containers/my-gandamu/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d | |
# - /var/containers/my-gandamu/etc/mysql/conf.d/:/etc/mysql/conf.d/ | |
# ### example - Barge | |
# # - /home/bargee/containers/my-gandamu/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d | |
# # - /home/bargee/containers/my-gandamu/etc/mysql/conf.d/:/etc/mysql/conf.d/ | |
# ### example - Docker for Mac | |
# # - /private/var/containers/my-gandamu/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d | |
# # - /private/var/containers/my-gandamu/etc/mysql/conf.d/:/etc/mysql/conf.d/ | |
# volumes_from: | |
# - 9zilla-volume-database | |
# pg-gandamu: | |
# container_name: pg-gandamu | |
# hostname: pg-gandamu | |
# image: postgres | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.32 | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# - "POSTGRES_PASSWORD=root" | |
# volumes_from: | |
# - 9zilla-volume-database | |
# redis-gandamu: | |
# container_name: redis-gandamu | |
# hostname: redis-gandamu | |
# image: redis:3.2.5 | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.31 | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# volumes_from: | |
# - 9zilla-volume-database | |
## | |
# Repository (.40) | |
## | |
9zilla-repos-git: | |
container_name: 9zilla-repos-git | |
hostname: 9zilla-repos-git | |
image: nobiki/9zilla-repos-git:latest | |
networks: | |
9zilla-net: | |
ipv4_address: 172.18.0.40 | |
environment: | |
- "TZ=Asia/Tokyo" | |
volumes: | |
### example - Linux | |
- /var/containers/9zilla-repos-git/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
### example - Barge | |
# - /home/bargee/containers/9zilla-repos-git/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
### example - Docker for Mac | |
# - /private/var/containers/9zilla-repos-git/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
volumes_from: | |
- 9zilla-volume-repository | |
# 9zilla-repos-composer: | |
# container_name: 9zilla-repos-composer | |
# hostname: 9zilla-repos-composer | |
# image: nobiki/9zilla-repos-composer:latest | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.41 | |
# environment: | |
# - "TZ=Asia/Tokyo" | |
# volumes: | |
# ### example - Linux | |
# - /var/containers/9zilla-repos-composer/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# - /var/containers/9zilla-repos-composer/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# ### example - Barge | |
# # - /home/bargee/containers/9zilla-repos-composer/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# # - /home/bargee/containers/9zilla-repos-composer/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# ### example - Docker for Mac | |
# # - /private/var/containers/9zilla-repos-composer/etc/supervisor/conf.d/:/etc/supervisor/conf.d/ | |
# # - /private/var/containers/9zilla-repos-composer/etc/nginx/conf.d/:/etc/nginx/conf.d/ | |
# volumes_from: | |
# - 9zilla-volume-repository | |
## | |
# CI (.50) | |
## | |
# drone-server: | |
# container_name: drone-server | |
# hostname: drone-server | |
# image: drone/drone:0.8 | |
# ports: | |
# - 8000 | |
# - 9000 | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.51 | |
# environment: | |
# - DRONE_OPEN=true | |
# - DRONE_HOST=https://drone.9zilla.local | |
# - DRONE_GITHUB=true | |
# - DRONE_GITHUB_CLIENT=********* | |
# - DRONE_GITHUB_SECRET=********* | |
# - DRONE_SECRET=********* | |
# volumes: | |
# - /home/bargee/containers/drone-server/var/lib/drone:/var/lib/drone/ | |
# restart: always | |
# drone-agent: | |
# container_name: drone-agent | |
# hostname: drone-agent | |
# image: drone/agent:0.8 | |
# command: agent | |
# restart: always | |
# depends_on: | |
# - drone-server | |
# volumes: | |
# - /var/run/docker.sock:/var/run/docker.sock | |
# networks: | |
# 9zilla-net: | |
# ipv4_address: 172.18.0.52 | |
# environment: | |
# - DRONE_SERVER=drone-server:9000 | |
# - DRONE_SECRET=********* | |
networks: | |
9zilla-net: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.18.0.0/16 | |
gateway: 172.18.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment