-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
57 lines (50 loc) · 1.11 KB
/
docker-compose.dev.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Use root/example as user/password credentials
version: '3.1'
services:
# Web server
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./src:/var/www/html/:ro
- ./node_modules:/var/www/assets/node_modules/:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
links:
- php
php:
build: .
volumes:
- ./src:/var/www/html/:ro
- ./vendor:/var/www/vendor/:ro
- ./.env:/var/www/.env:ro
environment:
DEBUG_MODE: 'true'
SQL_HOST: db
SQL_USER: root
SQL_PASSWORD: example
APP_NAME: 'Application name'
# Database services
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- ./db.sql:/docker-entrypoint-initdb.d/db.sql:ro
adminer:
image: adminer
restart: always
ports:
- 127.0.0.1:12344:8080
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# environment:
# - PMA_ARBITRARY=1
# - PMA_USER=root
# - PMA_PASSWORD=example
# restart: always
# ports:
# - 127.0.0.1:12345:80
# external_links:
# - db:db