-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.3 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
42
43
44
45
46
47
48
49
50
51
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
# USER_ID: 1000 # find yours with `id -u`
# GROUP_ID: 1000 # find yours with `id -g`
PHP_INI_MODEL: '/usr/local/etc/php/php.ini-development'
PHP_INI_LAMPP: '/usr/local/etc/php/conf.d/docker-lampp-dev.ini'
# APACHE_CONF_FILE: '/etc/apache2/sites-available/000-default.conf' # HTTPS Conf. File
container_name: 'phpserver'
environment:
- ALLOW_OVERRIDE=true
links:
- db
volumes:
- .:/var/www/html/
ports:
- "80:80"
# - "443:443" # HTTPS PORT
db:
image: mariadb
container_name: 'phpserver-database'
restart: always
# volumes:
# - ./database/data/mysql:/var/lib/mysql
# - ./database/logs/mysql:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: 'rootpass'
MYSQL_DATABASE: petclin
MYSQL_USER: dev
MYSQL_PASSWORD: 'devpass'
ports:
- "3606:3606"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: 'phpserver-phpmyadmin'
depends_on:
- db
restart: always
environment:
PMA_PORT: 3306
PMA_USER: dev
PMA_PASSWORD: 'devpass'
MYSQL_ROOT_PASSWORD: 'rootpass'
MYSQL_USER: dev
MYSQL_PASSWORD: 'devpass'
ports:
- "8900:80"