-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.53 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
services:
php:
image: c15k02k18/php:8.3-alpine${DEBUG:-}
restart: always
tty: true
volumes:
- .:/app
- ./docker/php.ini:/usr/local/etc/php/php.ini
networks:
- psfs-auth-network
working_dir: "/app"
ports:
- "${HOST_PORT:-8001}:8080"
command: 'php -S 0.0.0.0:8080 -t ./html'
environment:
XDEBUG_CONFIG: "remote_host=0.0.0.0"
PHP_IDE_CONFIG: "serverName=PSFSAUTH"
PHP_TIMEZONE: "${PHP_TIMEZONE:-Europe/Madrid}"
PHP_OPCACHE: "${PHP_OPCACHE:-0}"
depends_on:
- redis
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
redis:
restart: always
image: redis:latest
networks:
- psfs-auth-network
command: redis-server --appendonly yes
healthcheck:
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
security_opt:
- no-new-privileges:true
db:
image: mysql
networks:
- psfs-auth-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:
- "psfs_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-auth-network:
driver: bridge
volumes:
psfs_db: