* Adding the base of our API * Little file and lint adjustments * Adding the lint command to Makefile * Adding the Minesweeper logic for game creation * Adding some tests for the Minesweeper algorithm * Adding some tools command to Makefile like pre-commit and pip-tools * Adding test help text to Makefile * all new user is_staff=True, for development for now * Now we can get the data from specific game Adding game status Adding game status Fixing game models
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
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
|
|
app-test:
|
|
build: .
|
|
container_name: mines-app-test
|
|
volumes:
|
|
- ./commands:/commands
|
|
- .:/app
|
|
environment:
|
|
- DB_USER=root
|
|
- DB_PASS=minesweeper
|
|
- DB_HOST=db
|
|
- DB_NAME=minesweeper
|
|
- DB_PORT=3306
|
|
- DEBUG=1
|
|
links:
|
|
- db-test
|
|
db-test:
|
|
image: mysql:8
|
|
container_name: mines-db-test
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=minesweeper
|
|
- MYSQL_DATABASE=minesweeper
|
|
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
|