-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 809 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (34 loc) · 809 Bytes
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
version: '3'
services:
# Conteneur pour la base de données de MySQL
db:
image: mysql:latest
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
volumes:
- ./sql-dump:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=app
# Container pour le serveur web sous apache avec php7
site:
build: .
restart: always
ports :
- "80:80"
volumes:
- /chemin/vers/app/www:/var/www/html/
links:
- db
# Container pour phpmyadmin (facultatif pour faire fonctionner l'application)
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: always
depends_on:
- db
ports :
- "8080:80"
links:
- db:mysql