Creating the project bootstrap
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
version: "3"
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: mines-app
|
||||
volumes:
|
||||
- ./commands:/commands
|
||||
- .:/app
|
||||
command: /app/commands/run.sh
|
||||
environment:
|
||||
- DB_USER=root
|
||||
- DB_PASS=minesweeper
|
||||
- DB_HOST=db
|
||||
- DB_NAME=minesweeper
|
||||
- DB_PORT=3306
|
||||
- DEBUG=1
|
||||
ports:
|
||||
- 8000:8000
|
||||
links:
|
||||
- db
|
||||
db:
|
||||
image: mysql:8
|
||||
container_name: mines-db
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=minesweeper
|
||||
- MYSQL_DATABASE=minesweeper
|
||||
Reference in New Issue
Block a user