-
Notifications
You must be signed in to change notification settings - Fork 278
/
docker-compose.yml
57 lines (52 loc) · 1.04 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
version: '3'
services:
php:
build: ./docker
container_name: enso
ports:
- 8000:80
volumes:
- ./docker/vhosts.conf:/etc/apache2/sites-enabled/000-default.conf
- ./:/var/www/html
environment:
DB_HOST: mysqldb
REDIS_HOST: redis
depends_on:
- mysqldb
- redis
networks:
- enso
mysqldb:
image: mysql:8
container_name: enso-${DB_CONNECTION}
restart: always
env_file:
- .env
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
ports:
- 3306:3306
volumes:
- /var/lib/mysql
networks:
- enso
redis:
image: redis:latest
networks:
- enso
# myadmin:
# image: phpmyadmin/phpmyadmin:4.7
# container_name: enso-phpmyadmin
# ports:
# - 8081:80
# environment:
# - PMA_ARBITRARY=1
# - PMA_HOST=enso-${DB_CONNECTION}
# restart: always
# depends_on:
# - mysqldb
networks:
enso: