64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
version: '3'
|
|
services:
|
|
database:
|
|
image: mariadb:10.4
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_DATABASE: logo
|
|
MYSQL_USER: logo
|
|
MYSQL_PASSWORD: logo
|
|
ports:
|
|
- 3306:3306
|
|
command:
|
|
- "--character-set-server=utf8mb4"
|
|
- "--collation-server=utf8mb4_unicode_ci"
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
|
|
backend:
|
|
build:
|
|
context: misc/containers/backend
|
|
args:
|
|
HTTP_PROXY: ${HTTP_PROXY}
|
|
HTTPS_PROXY: ${HTTPS_PROXY}
|
|
http_proxy: ${http_proxy}
|
|
https_proxy: ${https_proxy}
|
|
environment:
|
|
HTTP_PROXY: ${HTTP_PROXY}
|
|
HTTPS_PROXY: ${HTTPS_PROXY}
|
|
http_proxy: ${http_proxy}
|
|
https_proxy: ${https_proxy}
|
|
ports:
|
|
- 8001:8001
|
|
volumes:
|
|
- ./backend/src:/app/src:ro
|
|
- ./backend/.env:/app/.env:ro
|
|
- ./backend/bin:/app/bin:ro
|
|
- ./backend/public:/app/public:ro
|
|
- ./backend/config:/app/config
|
|
- ./backend/composer.json:/app/composer.json
|
|
- backend_vendor:/app/vendor
|
|
tmpfs:
|
|
- /app/var
|
|
|
|
frontend:
|
|
build:
|
|
context: misc/containers/frontend
|
|
args:
|
|
HTTP_PROXY: ${HTTP_PROXY}
|
|
HTTPS_PROXY: ${HTTPS_PROXY}
|
|
http_proxy: ${http_proxy}
|
|
https_proxy: ${https_proxy}
|
|
environment:
|
|
HTTP_PROXY: ${HTTP_PROXY}
|
|
HTTPS_PROXY: ${HTTPS_PROXY}
|
|
http_proxy: ${http_proxy}
|
|
https_proxy: ${https_proxy}
|
|
ports:
|
|
- 8000:8000
|
|
volumes:
|
|
- ./frontend:/app
|
|
|
|
volumes:
|
|
db_data:
|
|
backend_vendor: |