Skip to content

Instantly share code, notes, and snippets.

@calcio
Created June 14, 2018 23:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calcio/473996fabe297746f8eb52c5f79397fc to your computer and use it in GitHub Desktop.
Save calcio/473996fabe297746f8eb52c5f79397fc to your computer and use it in GitHub Desktop.
version: "3.0"
services:
laravel-web:
container_name: laravel-web
build:
context: ./
dockerfile: docker/web.docker
volumes:
- ./:/var/www
ports:
- "8080:80"
links:
- laravel-app
laravel-app:
container_name: laravel-app
build:
context: ./
dockerfile: docker/app.docker
depends_on:
- laravel-postgres
- laravel-redis
volumes:
- ./:/var/www
environment:
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
XDEBUG_CONFIG: "remote_host=172.17.0.1 remote_enable=1"
laravel-composer:
container_name: laravel-composer
image: "composer"
volumes:
- ./:/app
command: install --ignore-platform-reqs
laravel-postgres:
container_name: laravel-postgres
image: postgres:10.3
volumes:
- ./volumes/database/:/var/lib/postgresql/vlt/
- ./volumes/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=laravel
- POSTGRES_USER=laravel
- POSTGRES_PASSWORD=laravel
restart: always
laravel-redis:
container_name: laravel-redis
image: redis:3.2.11
restart: always
ports:
- "6979:6379"
laravel-pgadmin:
container_name: laravel-pgadmin
image: fenglc/pgadmin4
restart: always
ports:
- "5051:5050"
volumes:
- ./volumes/pgadmin/config:/pgadmin/config
- ./volumes/pgadmin/storage:/pgadmin/storage
links:
- laravel-postgres:postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment