-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·130 lines (115 loc) · 3.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·130 lines (115 loc) · 3.46 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
services:
# Nginx Service
nginx:
image: nginx:latest
ports:
- 80:80
- 8074:8074
- 8081:8081
- 8082:8082
- 8083:8083
links:
- 'php74'
- 'php81'
- 'php82'
- 'php83'
volumes:
- ./html:/var/www/html
- ./configs/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./logs:/var/logs
depends_on:
- php83
restart: always
php74:
build:
context: ./configs/docker
dockerfile: php74-fpm-docker
volumes:
- './html:/var/www/html'
- './configs/php/74/php.ini:/usr/local/etc/php/php.ini'
- './configs/php/74/www.conf:/usr/local/etc/php-fpm.d/www.conf'
- './configs/php/74/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
depends_on:
- mariadb
restart: always
php81:
build:
context: ./configs/docker
dockerfile: php81-fpm-docker
volumes:
- './html:/var/www/html'
- './configs/php/81/php.ini:/usr/local/etc/php/php.ini'
- './configs/php/81/www.conf:/usr/local/etc/php-fpm.d/www.conf'
- './configs/php/81/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
depends_on:
- mariadb
restart: always
php82:
build:
context: ./configs/docker
dockerfile: php82-fpm-docker
volumes:
- './html:/var/www/html'
- './configs/php/82/php.ini:/usr/local/etc/php/php.ini'
- './configs/php/82/www.conf:/usr/local/etc/php-fpm.d/www.conf'
- './configs/php/82/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
depends_on:
- mariadb
restart: always
php83:
build:
context: ./configs/docker
dockerfile: php83-fpm-docker
volumes:
- './html:/var/www/html'
- './configs/php/83/php.ini:/usr/local/etc/php/php.ini'
- './configs/php/83/www.conf:/usr/local/etc/php-fpm.d/www.conf'
- './configs/php/83/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
depends_on:
- mariadb
restart: always
mariadb:
image: mariadb:10.9
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- mysqldata:/var/lib/mysql
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 82:80
environment:
PMA_HOST: PMA-HOST-IP-ADDRESS
MYSQL_ROOT_PASSWORD: root
PMA_USER: root
PMA_PASSWORD: root
MEMORY_LIMIT: 512M
UPLOAD_LIMIT: 256M
depends_on:
- mariadb
restart: always
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
restart: always
code-server:
stdin_open: true
tty: true
container_name: code-server
ports:
- 8080:8080
volumes:
- ./configs/coder/.local:/home/coder/.local
- ./configs/coder/.config:/home/coder/.config
- ./html:/home/coder/project
user: 1000:1000
environment:
- DOCKER_USER=web
image: codercom/code-server:latest
volumes:
mysqldata: