2019-11-16 09:50:54 +00:00
|
|
|
version: '3.7'
|
2019-11-07 19:05:10 +00:00
|
|
|
|
2019-11-05 15:06:24 +00:00
|
|
|
services:
|
2019-11-07 19:05:10 +00:00
|
|
|
nginx:
|
2020-04-15 03:52:37 +00:00
|
|
|
build: ./nginx
|
2019-11-07 19:05:10 +00:00
|
|
|
ports:
|
2019-11-16 09:50:54 +00:00
|
|
|
- 8080:80
|
|
|
|
volumes:
|
|
|
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
2020-04-15 03:52:37 +00:00
|
|
|
- app-data:/var/www/akaunting
|
2019-11-16 09:50:54 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
2020-04-15 03:52:37 +00:00
|
|
|
php:
|
2019-11-16 09:50:54 +00:00
|
|
|
build: ./php
|
2019-11-07 19:05:10 +00:00
|
|
|
volumes:
|
2020-04-15 03:52:37 +00:00
|
|
|
- app-data:/var/www/akaunting
|
2019-11-16 09:50:54 +00:00
|
|
|
restart: unless-stopped
|
2019-11-07 19:05:10 +00:00
|
|
|
|
2020-04-15 03:52:37 +00:00
|
|
|
db:
|
|
|
|
image: mysql:latest
|
2019-11-16 09:50:54 +00:00
|
|
|
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
|
2019-11-16 09:50:54 +00:00
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2019-11-07 19:05:10 +00:00
|
|
|
|
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"
|
2019-11-16 09:50:54 +00:00
|
|
|
volumes:
|
2020-04-15 03:52:37 +00:00
|
|
|
app-data:
|
2019-11-16 09:50:54 +00:00
|
|
|
db-data:
|