-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
51 lines (46 loc) · 1.18 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:
oxid6_apache:
build: container/apache/.
hostname: ${DOMAIN}
restart: always
depends_on:
- oxid6_mysql
volumes:
- ./data/www/:/var/www/html/:cached
environment:
DOMAIN: ${DOMAIN}
APACHE_PORT: ${APACHE_PORT}
OXID_VERSION: ${OXID_VERSION}
OXID_DEMODATA: ${OXID_DEMODATA}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- ${APACHE_PORT}:80
- ${APACHE_HTTPS_PORT}:443
links:
- oxid6_mailhog:mail.server
oxid6_mysql:
platform: 'linux/x86_64'
image: mysql:5.7
hostname: mysql.${DOMAIN}
restart: always
volumes:
- ./data/mysql/:/var/lib/mysql
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
oxid6_mailhog:
hostname: mailhog.${DOMAIN}
image: mailhog/mailhog:latest
ports:
- ${MAILHOG_PORT}:8025
oxid6_phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- ${PHPMYADMIN_PORT}:80
environment:
PMA_HOST: oxid6_mysql