Skip to content

Commit a1cbe1d

Browse files
authored
Merge pull request #16 from LibreCodeCoop/feat/compose-networkless-and-port-vars
Ajusta compose sem networks explícitas e corrige upstream do nginx
2 parents 9aded9d + 17689a8 commit a1cbe1d

3 files changed

Lines changed: 6 additions & 22 deletions

File tree

.docker/nginx/conf.d/http.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ server {
5959
location ~ \.php$ {
6060
try_files $uri =404;
6161
fastcgi_split_path_info ^(.+\.php)(/.+)$;
62-
fastcgi_pass php:9000;
62+
fastcgi_pass akaunting.php:9000;
6363
fastcgi_index index.php;
6464
include fastcgi_params;
6565
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

.docker/nginx/conf.d/https.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ server {
7070
location ~ \.php$ {
7171
try_files $uri =404;
7272
fastcgi_split_path_info ^(.+\.php)(/.+)$;
73-
fastcgi_pass php:9000;
73+
fastcgi_pass akaunting.php:9000;
7474
fastcgi_index index.php;
7575
include fastcgi_params;
7676
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

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)