-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
61 lines (58 loc) · 1.11 KB
/
docker-compose.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.4'
services:
dev-box:
hostname: dev.caligrafy.com
build:
context: .
dockerfile: ./docker/Dockerfile
target: dev-php
volumes:
- ./:/var/www/html/
environment: &dev_environment
# App
APP_ROOT: ""
APP_ENV: local
APP_DEBUG: "true"
# DB
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: root
ports:
- "8080:80"
depends_on:
- mysql
- phpmyadmin
prod-box:
hostname: prod.caligrafy.com
build:
context: .
dockerfile: ./docker/Dockerfile
target: prod-php
environment:
<<: *dev_environment
APP_ENV: local
APP_DEBUG: "true"
ports:
- "8080:80"
depends_on:
- mysql
- phpmyadmin
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: always
ports:
- "8077:80"
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
depends_on:
- mysql
mysql:
image: mysql:latest
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root