2024-11-01 19:42:13 +00:00
|
|
|
services:
|
|
|
|
core:
|
|
|
|
build:
|
|
|
|
context: ../../core
|
|
|
|
dockerfile: ../deploy/dev/Dockerfile.backend
|
|
|
|
command: bash -c 'python manage.py migrate && python manage.py runserver 0.0.0.0:8000'
|
|
|
|
environment:
|
|
|
|
- HTTP_HOST=core
|
2024-11-06 20:13:44 +00:00
|
|
|
- DB_HOST=db
|
|
|
|
- DB_PORT=3306
|
|
|
|
- DB_NAME=system3
|
|
|
|
- DB_USER=system3
|
|
|
|
- DB_PASSWORD=system3
|
2024-11-01 19:42:13 +00:00
|
|
|
volumes:
|
|
|
|
- ../../core:/code
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2024-11-06 20:13:44 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2024-11-01 19:42:13 +00:00
|
|
|
|
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
context: ../../web
|
|
|
|
dockerfile: ../deploy/dev/Dockerfile.frontend
|
|
|
|
command: npm run serve
|
|
|
|
volumes:
|
|
|
|
- ../../web:/web:ro
|
|
|
|
- /web/node_modules
|
|
|
|
- ./vue.config.js:/web/vue.config.js
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2024-11-06 20:13:44 +00:00
|
|
|
depends_on:
|
|
|
|
- core
|
2024-11-01 19:42:13 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb
|
|
|
|
environment:
|
|
|
|
MARIADB_RANDOM_ROOT_PASSWORD: true
|
|
|
|
MARIADB_DATABASE: system3
|
|
|
|
MARIADB_USER: system3
|
2024-11-06 20:13:44 +00:00
|
|
|
MARIADB_PASSWORD: system3
|
|
|
|
volumes:
|
|
|
|
- mariadb_data:/var/lib/mysql
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mariadb_data:
|