Skip to content
Snippets Groups Projects
Commit 4c099f09 authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

clean docker-compose

parent 8bb503b6
Branches master
No related tags found
1 merge request!12clean docker-compose
Pipeline #43764 passed
...@@ -7,16 +7,22 @@ services: ...@@ -7,16 +7,22 @@ services:
restart: always restart: always
env_file: .env env_file: .env
command: ["mysqld", "--authentication-policy=mysql_native_password"] command: ["mysqld", "--authentication-policy=mysql_native_password"]
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 1s
retries: 3
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
- mysql-db:/var/lib/mysql - mysql-db:/var/lib/mysql
app: app:
container_name: "app"
build: . build: .
container_name: "app"
depends_on: depends_on:
- db db:
condition: service_healthy
restart: always restart: always
ports: ports:
- 8000:80 - 8000:80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment