Skip to content
Snippets Groups Projects

clean docker-compose

Merged Antoine Gaudron-Desjardins requested to merge clean_docker_compose into main
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading