-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.46 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
version: '3'
services:
php:
build: . # Build avec le Dockerfile
image: php:7.4-apache
depends_on:
- mysql
# Changement du répertoire courant
working_dir: /var/www/html/back
volumes:
- .:/var/www/html/back
extra_hosts:
- "back-local.atoute.com:127.0.0.1"
# Définition du port sur lequel écouté, on le lie au port 8080 local "portchoisi:portapache"
ports:
- "8080:80"
mysql:
image: mysql:5.7
command:
- "--default-authentication-plugin=mysql_native_password"
- "--lower_case_table_names=1"
environment:
- MYSQL_ROOT_PASSWORD=rootpass0
# Variables d'environnement pour se connecter à la base de données
- MYSQL_DATABASE=atoute
- MYSQL_USER=atoute
- MYSQL_PASSWORD=atoute
ports:
- "3306:3306"
mail:
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
depends_on:
- mysql
environment:
PMA_HOST: mysql
ports:
- '8088:80'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.1
environment:
- cluster.name=atoute
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:6.0.1
links:
- elasticsearch
ports:
- 5601:5601