first commit

This commit is contained in:
2024-11-18 17:07:22 +01:00
parent 416ce7479f
commit d8882c93b9
26 changed files with 1150 additions and 104 deletions

View File

@@ -1,25 +1,41 @@
version: '3'
services:
###> doctrine/doctrine-bundle ###
database:
image: postgres:${POSTGRES_VERSION:-16}-alpine
mariadb:
image: mariadb
container_name: ninecompta-mariadb
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
POSTGRES_USER: ${POSTGRES_USER:-app}
healthcheck:
test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
timeout: 5s
retries: 5
start_period: 60s
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: ninecompta
MYSQL_USER: user
MYSQL_PASSWORD: changeme
volumes:
- database_data:/var/lib/postgresql/data:rw
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
###< doctrine/doctrine-bundle ###
- mariadb-data:/var/lib/mysql
ninecompta:
build:
context: .
dockerfile: ./misc/docker/Dockerfile
container_name: ninecompta-app
restart: unless-stopped
image: reg.cadoles.com/envole/ninecompta
depends_on:
- mariadb
env_file: .env
ports:
- "8008:80"
volumes:
- .:/app:delegated
adminer:
image: adminer
container_name: ninecompta-adminer
restart: always
ports:
- 6088:8080
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###
mariadb-data: