-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·56 lines (51 loc) · 1.67 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
version: '3.3'
services:
wordpress:
build: ./docker_wordpress
restart: on-failure
depends_on:
- mysql
container_name: grp5-wp
environment:
WORDPRESS_DB_HOST: ${DB_HOST}
WORDPRESS_DB_NAME: ${DB_DATABASE}
WORDPRESS_DB_USER: ${DB_USER}
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
VIRTUAL_HOST: ${DOMAINS}
LETSENCRYPT_HOST: ${DOMAINS}
LETSENCRYPT_EMAIL: ${EMAIL}
# Volumes pour wp-content uniquement ou pour tous les fichiers (tests)
volumes:
# - ./docker_wordpress/wp_files/wp-content:/var/www/html/wp-content
- ./docker_wordpress/wp_files:/var/www/html
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
container_name: grp5-pma
environment:
PMA_ARBITRARY: 1
PMA_HOST: mysql
PMA_PORT: 3306
VIRTUAL_HOST: ${PHPMYADMINDOMAINS}
LETSENCRYPT_HOST: ${PHPMYADMINDOMAINS}
LETSENCRYPT_EMAIL: ${EMAIL}
volumes:
- /sessions
depends_on:
- mysql
mysql:
image: mysql:5.7
container_name: grp5-mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
command: ["bash", "-c", 'docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci']
volumes:
- /var/lib/mysql
- ./docker_mysql/db_wp_chanter.sql:/docker-entrypoint-initdb.d/db.sql
networks:
default:
external:
name: ${NETWORK}