Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker update #749

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,51 @@
version: "3"
version: '3.2'

services:
app:
build: docker/php

frontend:
build: frontend
ports:
- 20080:80
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app
depends_on:
- db
- mailcatcher
env_file:
- .env

webpacker:
image: node:9-alpine
working_dir: /app
backend:
build: backend
ports:
- 21080:80
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app
command: /bin/true
depends_on:
- db
- mailcatcher

nginx:
image: nginx:1.12-alpine
storage:
build: storage
ports:
- 80:80
- 22080:80
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/vhost.conf
depends_on:
- app

webpacker:
image: node:9-alpine
working_dir: /app
volumes:
- ./:/app
command: /bin/true

mailcatcher:
image: schickling/mailcatcher:latest
ports:
- 1080:1080

db:
image: mysql:5.7
image: mysql:5.8
volumes:
- /var/lib/mysql
- ./docker/mysql/config.cnf:/etc/mysql/conf.d/config.cnf
Expand Down