Skip to content

Commit 0a5d9c9

Browse files
authored
Merge pull request #673 from sourcentis/dev
Dev
2 parents 28930a2 + 86ff738 commit 0a5d9c9

3 files changed

Lines changed: 51 additions & 50 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker-compose.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
services:
2+
deming:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
environment:
7+
### PLEASE DISABLE AFTER THE FIRST RUN FOR OPTIMIZATION PRODUCTION
8+
- DB_SLEEP=10
9+
# Default timezone
10+
- TZ=Europe/Paris
11+
# Default db connexion
12+
- DB_HOST=mysql
13+
- APP_ENV=local
14+
- DB_DATABASE=deming
15+
- DB_USERNAME=deming_user
16+
- DB_PASSWORD=demPasssword-123
17+
- APP_FORCE_HTTPS=false
18+
volumes:
19+
- .env:/var/www/deming/.env
20+
- ./docker/custom/deming.php:/var/www/deming/config/deming.php
21+
- ./docker/custom/Kernel.php:/var/www/deming/app/Console/Kernel.php
22+
- ./docker/custom/app.php:/var/www/deming/config/app.php
23+
ports:
24+
- 8000:8000
25+
depends_on:
26+
mysql:
27+
condition: service_healthy
28+
mysql:
29+
image: mysql:9.5
30+
environment:
31+
MYSQL_DATABASE: deming
32+
MYSQL_USER: deming_user
33+
MYSQL_PASSWORD: demPasssword-123
34+
MYSQL_RANDOM_ROOT_PASSWORD: "1"
35+
expose:
36+
- 3306
37+
healthcheck:
38+
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "--silent"]
39+
interval: 5s
40+
timeout: 5s
41+
retries: 10
42+
start_period: 30s
43+
44+
45+
### PLEASE ENABLE FOR PERSISTENT DATABASE DATA
46+
volumes:
47+
- dbdata:/var/lib/mysql
48+
volumes:
49+
dbdata:

docker/docker-compose.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

docker/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -e
33

44
cd /var/www/deming
55

6+
DB_HOST="${DB_HOST:-mysql}"
7+
68
echo "Waiting for MySQL to be ready..."
79
until mysqladmin ping -h"${DB_HOST}" --silent 2>/dev/null; do
810
echo " Not ready, retrying in 3s..."

0 commit comments

Comments
 (0)