Skip to content

Commit 17689a8

Browse files
committed
refactor(compose): remove custom networks and parameterize host ports
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 406ea93 commit 17689a8

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
networks:
2-
internal:
3-
driver: bridge
4-
name: internal
5-
external:
6-
external: true
7-
name: external
8-
91
services:
102
akaunting.php:
113
build: .docker/php
@@ -17,15 +9,15 @@ services:
179
environment:
1810
- HOST_UID=${HOST_UID:-1000}
1911
- HOST_GID=${HOST_GID:-1000}
20-
- AKAUNTING_VERSION=${AKAUNTING_VERSION:-3.1.11}
12+
- AKAUNTING_VERSION=${AKAUNTING_VERSION:-3.1.21}
2113
- ADM_EMAIL=${ADM_EMAIL:-admin@test.domain}
2214
- ADM_PASSWD=${ADM_PASSWD:-admin}
2315

2416
- APP_ENV=${APP_ENV:-local}
2517

2618
- DB_CONNECTION=${DB_CONNECTION:-mysql}
2719
- DB_PORT=${DB_PORT:-3306}
28-
- DB_HOST=${DB_HOST:-mysql}
20+
- DB_HOST=${DB_HOST:-akaunting.mysql}
2921
- DB_DATABASE=${DB_DATABASE:-akaunting}
3022
- DB_USERNAME=${DB_USERNAME:-root}
3123
- DB_PASSWORD=${DB_PASSWORD:-root}
@@ -40,8 +32,6 @@ services:
4032
- XDEBUG_CONFIG
4133
extra_hosts:
4234
- host.docker.internal:host-gateway
43-
networks:
44-
- internal
4535
akaunting.nginx:
4636
build:
4737
context: .docker/nginx
@@ -53,20 +43,14 @@ services:
5343
depends_on:
5444
- akaunting.php
5545
ports:
56-
- 8082:80
57-
networks:
58-
- internal
59-
- external
46+
- ${HTTP_PORT:-80}:80
6047
akaunting.mysql:
6148
image: mysql
6249
volumes:
6350
- ./volumes/mysql/data:/var/lib/mysql
6451
- ./volumes/mysql/dump:/docker-entrypoint-initdb.d
6552
ports:
66-
- 3307:3306
53+
- ${MYSQL_PORT:-3306}:3306
6754
environment:
6855
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
6956
- MYSQL_DATABASE=${MYSQL_DATABASE:-akaunting}
70-
networks:
71-
- internal
72-
- external

0 commit comments

Comments
 (0)