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