2020-02-04 17:20:39 +01:00
|
|
|
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
|
2020-02-17 22:28:57 +01:00
|
|
|
command:
|
|
|
|
- "--character-set-server=utf8mb4"
|
|
|
|
- "--collation-server=utf8mb4_unicode_ci"
|
2020-02-04 17:20:39 +01:00
|
|
|
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:
|