-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-wordpress
More file actions
69 lines (69 loc) · 1.66 KB
/
Copy pathcompose-wordpress
File metadata and controls
69 lines (69 loc) · 1.66 KB
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
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
network_mode: bridge
1_test_mysql:
container_name: 1test_mysql
image: mysql:5.7
#restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_DATABASE: base_de_donnee_test
#MYSQL_USER: wissem
#MYSQL_PASSWORD: wissempw
#MYSQL_ALLOW_EMPTY_PASSWORD
#MYSQL_RANDOM_PASSWORD
#MYSQL_ONETIME_PASSWORD
volumes:
- ./db_data:/var/lib/mysql
network_mode: bridge
1_test_phpmyadmin:
container_name: 1test_phpmyadmin
image: phpmyadmin/phpmyadmin
#restart: always
links:
- 1_test_mysql:mysql
environment:
MYSQL_ROOT_PASSWORD: rootpw
PMA_HOST: mysql
VIRTUAL_HOST: phpmyadmin.local
#ports:
#- 81:80
network_mode: bridge
1_test_wordpres:
container_name: 1_test_wordpres
image: wordpress
links:
- 1_test_mysql:mysql
environment:
WORDPRESS_DB_PASSWORD: rootpw
VIRTUAL_HOST: wordpress.local
#ports:
#- 80:80
volumes:
- ./wp_data:/var/www/html
network_mode: bridge
mysql_backup:
container_name: mysql_backup
image: databack/mysql-backup
depends_on:
- 1_test_mysql
links:
- 1_test_mysql:mysql
#restart: always
volumes:
- ./db_backup:/db
#il faut mettre le dossier db_backup dans la host accessible lecture et ecriture chmod -R 777
environment:
- DB_DUMP_TARGET=/db
- DB_USER=root
- DB_PASS=rootpw
- DB_DUMP_FREQ=30
- DB_DUMP_BEGIN=+0
- DB_SERVER=mysql
network_mode: bridge