2022-05-15 12:43:42 +03:00
|
|
|
version: '3.4'
|
|
|
|
services:
|
|
|
|
|
|
|
|
freepad:
|
|
|
|
build: .
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
environment:
|
|
|
|
- MYSQL_URL
|
|
|
|
- MYSQL_ROOT_PASSWORD
|
|
|
|
- MYSQL_DATABASE
|
|
|
|
- MYSQL_USER
|
|
|
|
- MYSQL_PASSWORD
|
|
|
|
- MYSQL_PORT
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
|
2022-05-17 23:27:20 +03:00
|
|
|
# Mariadb is completely optional, you can simply just use sqlite.
|
2022-05-15 12:43:42 +03:00
|
|
|
mariadb:
|
|
|
|
image: mariadb:10.2
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD
|
|
|
|
- MYSQL_DATABASE
|
|
|
|
- MYSQL_USER
|
|
|
|
- MYSQL_PASSWORD
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
volumes:
|
|
|
|
- ./dev/mariadb:/var/lib/mysql
|
|
|
|
ports:
|
|
|
|
- 3306:3306
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
driver: bridge
|