summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml175
1 files changed, 175 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..7b43f6e
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,175 @@
+version: '2'
+
+services:
+
+### Applications Code Container #############################
+
+ applications:
+ image: tianon/true
+ volumes:
+ # as long as all the Vainglory repo are checked out on the same level this will work just fine
+ # volume to map Vainsocial.com code. used by Workspace repo.
+ - ../vainsocial.com/:/var/www/vainsocial
+
+### Workspace Utilities Container ###########################
+
+ workspace:
+ container_name: vaindock_workspace
+ build:
+ context: ./workspace
+ args:
+ - INSTALL_XDEBUG=true
+ - INSTALL_NODE=false # required is node is not installed locally
+ - INSTALL_YARN=false
+ - INSTALL_V8JS_EXTENSION=false
+ - COMPOSER_GLOBAL_INSTALL=true # required if composer is not installed locally
+ - INSTALL_WORKSPACE_SSH=true
+ - INSTALL_LARAVEL_ENVOY=false
+ - INSTALL_DEPLOYER=false
+ - PUID=1000
+ - PGID=1000
+ - NODE_VERSION=stable
+ - YARN_VERSION=latest
+ - TZ=UTC
+ volumes_from:
+ - applications
+ extra_hosts:
+ # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
+ - "dockerhost:10.0.75.1"
+ ports:
+ - "2222:22"
+ links:
+ - vaindock_postgres_raw
+ - vaindock_postgres_web
+ tty: true
+
+### PHP-FPM Container #######################################
+
+ php-fpm:
+ container_name: vaindock_php-fpm
+ build:
+ context: ./php-fpm
+ args:
+ - INSTALL_XDEBUG=true
+ - INSTALL_SOAP=false
+ - INSTALL_MONGO=false
+ - INSTALL_ZIP_ARCHIVE=false
+ - INSTALL_BCMATH=false
+ - INSTALL_PHPREDIS=true
+ - INSTALL_MEMCACHED=false
+ - INSTALL_OPCACHE=false
+ - INSTALL_EXIF=false
+ dockerfile: Dockerfile-70
+ volumes_from:
+ - applications
+ expose:
+ - "9000"
+ links:
+ - workspace
+ - vaindock_postgres_raw
+ - vaindock_postgres_web
+ extra_hosts:
+ # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
+ - "dockerhost:10.0.75.1"
+ environment:
+ # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
+ - PHP_IDE_CONFIG=serverName=laravel
+
+### Nginx Server Container ##################################
+
+### The webroot is mapped to vainsocial.dev (entry in hosts file)
+
+ nginx:
+ container_name: vaindock_nginx
+ build:
+ context: ./nginx
+ args:
+ - PHP_UPSTREAM=php-fpm
+ volumes_from:
+ - applications
+ volumes:
+ - ./logs/nginx/:/var/log/nginx
+ - ./nginx/sites/:/etc/nginx/sites-available
+ ports:
+ - "80:80"
+ - "443:443"
+ links:
+ - php-fpm
+
+### Apache Server Container #################################
+
+ # apache2:
+ # build:
+ # context: ./apache2
+ # args:
+ # - PHP_SOCKET=php-fpm:9000
+ # volumes_from:
+ # - applications
+ # volumes:
+ # - ./logs/apache2:/var/log/apache2
+ # ports:
+ # - "80:80"
+ # - "443:443"
+ # links:
+ # - php-fpm
+
+
+### PostgreSQL Container - Web ####################################
+
+ vaindock_postgres_web:
+ container_name: vaindock_postgres_web
+ build: ./postgres
+ volumes:
+ - vaindock_pg_web:/var/lib/postgresql/data
+ ports:
+ - "5432:5432"
+ environment:
+ POSTGRES_DB: vainsocial-web
+ POSTGRES_USER: vainweb
+ POSTGRES_PASSWORD: vainweb
+
+### PostgreSQL Container - Raw ####################################
+
+ vaindock_postgres_raw:
+ container_name: vaindock_postgres_raw
+ build: ./postgres
+ volumes:
+ - vaindock_pg_raw:/var/lib/postgresql/data
+ ports:
+ - "5433:5432"
+ environment:
+ POSTGRES_DB: vainsocial-raw
+ POSTGRES_USER: vainraw
+ POSTGRES_PASSWORD: vainraw
+
+
+### Redis Container #########################################
+
+# redis:
+# build: ./redis
+# volumes:
+# - redis:/data
+# ports:
+# - "6379:6379"
+
+### pgAdmin Container #######################################
+
+ pgadmin:
+ container_name: vaindock_pgadmin
+ build: ./pgadmin
+ ports:
+ - "5050:5050"
+ links:
+ - vaindock_postgres_raw
+ - vaindock_postgres_web
+
+
+### Volumes Setup ###########################################
+
+volumes:
+ vaindock_pg_raw:
+ driver: "local"
+ vaindock_pg_web:
+ driver: "local"
+ sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
+ driver: "local"