Skip to content
Snippets Groups Projects
Commit be2f95cc authored by NETANGE Clement's avatar NETANGE Clement
Browse files

debut fix docker compose

parent 90cd8cd7
No related branches found
No related tags found
No related merge requests found
driver=
\ No newline at end of file
version: '3.8'
networks:
net:
driver: bridge
services: services:
php: php:
build: './docker/php' build: './docker/php'
...@@ -7,4 +12,14 @@ services: ...@@ -7,4 +12,14 @@ services:
- ${PHP_PORT:-8080}:80 - ${PHP_PORT:-8080}:80
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html
command: php -S 0.0.0.0:80 -t . command: php -S 0.0.0.0:80 -t .
\ No newline at end of file networks:
- net
db:
image: mysql:latest
networks:
- net
env_file: sql/db.env
volumes:
- ./sql:/docker-entrypoint-initdb.d
File moved
File moved
MYSQL_ROOT_PASSWORD=rootpassword
MYSQL_DATABASE=mydatabase
MYSQL_USER=myuser
MYSQL_PASSWORD=mypassword
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment