forked from shakeme/docker-lamp-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
93 lines (81 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3"
services:
php:
build:
context: ./image-php
dockerfile: Dockerfile_${PHP_VERSION}
volumes:
- "./app:/var/www/html"
- "./conf/php/mail.ini:/usr/local/etc/php/conf.d/mail.ini"
- "./conf/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini"
ports:
- "8080:80"
networks:
- front-net
- back-net
mariadb:
image: mariadb
volumes:
- "db-data-mariadb:/var/lib/mysql"
- "./db-init-mariadb:/docker-entrypoint-initdb.d"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=app
- MYSQL_USER=app
- MYSQL_PASSWORD=pass
networks:
- back-net
mysql:
image: mysql:5.6
volumes:
- "db-data-mysql:/var/lib/mysql"
- "./db-init-mysql:/docker-entrypoint-initdb.d"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=app
- MYSQL_USER=app
- MYSQL_PASSWORD=pass
networks:
- back-net
postgres:
image: postgres:alpine
volumes:
- "db-data-postgres:/var/lib/postgresql/data"
- "./db-init-postgres:/docker-entrypoint-initdb.d"
environment:
- POSTGRES_DB=app
- POSTGRES_USER=app
- POSTGRES_PASSWORD=pass
redis:
image: redis:alpine
volumes:
- "db-data-redis:/data"
networks:
- back-net
memcached:
image: memcached:alpine
networks:
- back-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
volumes:
- "./conf/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php"
ports:
- "8081:80"
networks:
- back-net
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
networks:
- back-net
volumes:
db-data-mariadb:
db-data-mysql:
db-data-postgres:
db-data-redis:
networks:
front-net:
back-net:
# vim: ai expandtab ts=2 sts=2 sw=2