Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (76 loc) · 1.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (76 loc) · 1.67 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
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
PHP_VERSION: "8.2"
container_name: phpwcms-legacy-web
restart: unless-stopped
ports:
- "8090:80"
volumes:
- .:/var/www/html
depends_on:
- db
- mailpit
php:
build:
context: .
dockerfile: Dockerfile.fpm
args:
PHP_VERSION: "8.2"
container_name: phpwcms-legacy-php
restart: unless-stopped
volumes:
- .:/var/www/html
depends_on:
- db
nginx:
image: nginx:1.27-alpine
container_name: phpwcms-legacy-nginx
restart: unless-stopped
ports:
- "8092:80"
volumes:
- .:/var/www/html
- ./nginx.conf:/etc/nginx/phpwcms.conf:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
db:
image: mariadb:10.11
container_name: phpwcms-legacy-db
restart: unless-stopped
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "3317:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: phpwcms
MYSQL_USER: phpwcms
MYSQL_PASSWORD: phpwcmspassword
volumes:
- db_data:/var/lib/mysql
mailpit:
image: axllent/mailpit:latest
container_name: phpwcms-legacy-mailpit
restart: unless-stopped
ports:
- "8036:8025"
- "1036:1025"
environment:
MP_MAX_MESSAGES: 500
phpmyadmin:
image: phpmyadmin:latest
container_name: phpwcms-legacy-pma
restart: unless-stopped
ports:
- "8091:80"
environment:
PMA_HOST: db
PMA_PORT: 3306
depends_on:
- db
volumes:
db_data: