-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
58 lines (54 loc) · 1.55 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
55
56
57
58
version: "3.7"
services:
php:
image: c15k02k18/php:8.3${DEBUG:-}
restart: always
tty: true
volumes:
- .:/var/www
- ./docker/php.ini:/usr/local/etc/php/php.ini
networks:
- psfs-network
working_dir: "/var/www"
ports:
- "${HOST_PORT:-8001}:8080"
command: 'php -S 0.0.0.0:8080 -t ./html'
environment:
XDEBUG_CONFIG: "remote_host=localhost"
PHP_IDE_CONFIG: "serverName=PSFSCore"
depends_on:
- redis
healthcheck:
test: ["CMD", "php-fpm", "-t"]
interval: 1s
timeout: 3s
retries: 5
redis:
restart: always
image: redis:latest
networks:
- psfs-network
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
db:
image: mysql
networks:
- psfs-network
environment:
MYSQL_USER: ${MYSQL_USER:-psfs}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-psfs}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-psfs}
MYSQL_DATABASE: ${MYSQL_DATABASE:-psfs}
volumes:
- "./cache/db:/var/lib/mysql"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-p${MYSQL_ROOT_PASSWORD:-checks}" ]
interval: 3s
timeout: 5s
retries: 20
networks:
psfs-network:
driver: bridge