-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.36 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
52
version: '3'
services:
oxid6_apache:
build: container/apache_php7/.
hostname: ${HOSTNAME}
container_name: apache.${HOSTNAME}
depends_on:
- oxid6_mysql
volumes:
- ${PWD}/../:/var/www/html/:cached
- "~/.composer:/var/www/.composer"
- "./container/apache_php7/files/php.ini:/usr/local/etc/php/php.ini"
environment:
APACHE_PORT: ${APACHE_PORT}
OXID_VERSION: ${OXID_VERSION}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- ${APACHE_PORT}:80
links:
- oxid6_mailhog:mail.server
oxid6_mysql:
image: mysql:5.7
container_name: mysql.${HOSTNAME}
hostname: mysql.${HOSTNAME}
volumes:
- ${PWD}/data/mysql/:/var/lib/mysql
- ./container/mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
oxid6_mailhog:
hostname: mailhog.${HOSTNAME}
container_name: mailhog.${HOSTNAME}
image: mailhog/mailhog:latest
ports:
- ${MAILHOG_PORT}:8025
oxid6_phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin.${HOSTNAME}
ports:
- ${PHPMYADMIN_PORT}:80
environment:
PMA_HOST: mysql.${HOSTNAME}