-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
41 lines (41 loc) · 1.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# GETTING STARTED
# 0. Install Docker for Mac: https://download.docker.com/mac/stable/Docker.dmg
#
# 1. Edit your host file and add:
# 127.0.0.1 local.craft3.com
# 127.0.0.1 local-api.craft3.com
# 2. Add environment variables in a .env file in this directory (the root)
#
# 3. Start docker containers
# docker-compose up -d
#
#
# COMMON COMMANDS
# 1. Starting docker containers
# docker-compose start
# 2. Stopping docker containers
# docker-compose stop
version: '3'
services:
web:
image: 'flipbox/php:72-apache'
ports:
- '80:80'
- '443:443'
volumes:
- '.:/var/www/html/'
environment:
XDEBUG_ON: "yes"
XDEBUG_HOST: "host.docker.internal"
XDEBUG_IDEKEY: "PHPSTORM"
ENVIRONMENT: dev
db:
image: 'mysql:5.6'
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: craft
MYSQL_USER: craft
MYSQL_PASSWORD: craft