-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
83 lines (77 loc) · 2.04 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:
nginx:
image: "nginx:latest"
ports:
- "${HTTP_PORT:-80}:80"
- "${SSL_PORT:-443}:443"
environment:
- "SSL_PORT=${SSL_PORT:-443}"
- "APP_SERVICE=${APP_SERVICE:-myservice}"
- "SERVER_NAME=${SERVER_NAME:-localhost}"
- "SSL_DOMAIN=${SSL_DOMAIN:-localhost}"
volumes:
- "./nginx-certs:/etc/nginx/certs"
- "./nginx/templates:/etc/nginx/templates"
- "./nginx/keys:/etc/keys"
- "./:/var/www/html"
restart: always
#command: '/bin/bash -c "cp /etc/nginx/templates/generate-ssl-cert.sh /docker-entrypoint.d/"'
networks:
- sail
php:
image: php:8.2-fpm-alpine
ports:
- "9001:9000"
volumes:
- "../:/var/www/html"
- ./logs/php.log:/var/log/fpm-php.www.log
restart: always
networks:
- sail
mariadb:
image: mariadb:10.6.18
ports:
- "${DB_PORT:-3306}:${DB_PORT:-3306}"
environment:
MARIADB_ROOT_PASSWORD: "${DB_PASSWORD}"
MARIADB_ROOT_HOST: "%"
MARIADB_DATABASE: "${DB_DATABASE}"
MARIADB_ROOT_USER: "${DB_USERNAME}"
MARIADB_USER: "${DB_USERNAME}"
MARIADB_PASSWORD: "${DB_PASSWORD}"
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
volumes:
- "./mariadb:/var/lib/mysql:Z"
networks:
- sail
restart: always
healthcheck:
test:
- CMD
- mysqladmin
- ping
- "-p${DB_PASSWORD}"
retries: 3
timeout: 5s
myadmin:
image: phpmyadmin:latest
ports:
- "${FORWARD_MYADMIN_PORT:-8890}:8890"
volumes:
- "phpmyadmin:/var/www/html"
networks:
- sail
environment:
- PMA_ARBITRARY=1
- PMA_HOST=mariadb
- APACHE_HTTP_PORT_NUMBER=${FORWARD_MYADMIN_PORT:-8890}
- UPLOAD_LIMIT=300M
restart: always
command: '/bin/bash -c "sed -i \"s/80/$$APACHE_HTTP_PORT_NUMBER/g\" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && /docker-entrypoint.sh apache2-foreground"'
networks:
sail:
driver: bridge
name: zen-network
volumes:
phpmyadmin:
driver: local