Akaunting/docker-compose.yml

43 lines
911 B
YAML
Raw Normal View History

version: '3.7'
2019-11-05 15:06:24 +00:00
services:
nginx:
2020-04-15 03:52:37 +00:00
build: ./nginx
ports:
- 8080:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
2020-04-15 03:52:37 +00:00
- app-data:/var/www/akaunting
restart: unless-stopped
2020-04-15 03:52:37 +00:00
php:
build: ./php
volumes:
2020-04-15 03:52:37 +00:00
- app-data:/var/www/akaunting
restart: unless-stopped
2020-04-15 03:52:37 +00:00
db:
image: mysql:latest
volumes:
- db-data:/var/lib/mysql
2019-11-05 15:06:24 +00:00
environment:
MYSQL_ROOT_PASSWORD: akaunting_root_password
MYSQL_DATABASE: akaunting_db
MYSQL_USER: akaunting_admin
MYSQL_PASSWORD: akaunting_password
command: --default-authentication-plugin=mysql_native_password
2020-04-15 03:52:37 +00:00
# image: postgres:alpine
# volumes:
# - db-data:/var/lib/postgresql/data
# environment:
# POSTGRES_DB: akaunting_db
# POSTGRES_USER: akaunting_admin
# POSTGRES_PASSWORD: akaunting_password
# ports:
# - "5432:5432"
volumes:
2020-04-15 03:52:37 +00:00
app-data:
db-data: