forked from atsanna/codeigniter4-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 2.17 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
version: "3"
services:
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
# C O D E I G N I T E R v4.0.4 #
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
codeigniter4:
image: atsanna/codeigniter4:latest
container_name: 'codeigniter4'
ports:
- 80:80
links:
- codeigniter4_mysql
volumes:
- ./localfolder/www:/var/www/html
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
# M Y S Q L #
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
codeigniter4_mysql:
image: mariadb:10.5.5
container_name: 'codeigniter4_mysql'
ports:
- 3306:3306
volumes:
- ./localfolder/mysql:/var/lib/mysql
- ./localfolder/logs/mysql:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: codeigniter4
MYSQL_USER: codeigniter4
MYSQL_PASSWORD: codeigniter4
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
# P H P M Y A D M I N #
#--------------------------------------------------------------------------#
#--------------------------------------------------------------------------#
codeigniter4_phpmyadmin:
image: phpmyadmin/phpmyadmin:5.0.2
container_name: 'codeigniter4_phpmyadmin'
links:
- codeigniter4_mysql
environment:
PMA_HOST: codeigniter4_mysql
PMA_PORT: 3306
ports:
- 81:80
volumes:
- ./localfolder/sessions:/sessions