Skip to content

Commit 5652679

Browse files
committed
[Lazy - Symfony] Docker ports range
1 parent 22cdd6a commit 5652679

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lazy.symfony/.manala.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ app: ~
3030
##########
3131

3232
system:
33+
# @schema {"enum": [8000, 9000, 10000]}
34+
ports: 8000
3335
nginx:
3436
# @option {"label": "Nginx version"}
3537
# @schema {"enum": [1.18]}

lazy.symfony/.manala/docker-compose.yaml.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
target: nginx
2121
restart: always
2222
ports:
23-
- '8080:80'
23+
- '{{ add .Vars.system.ports 80 }}:80'
2424
volumes:
2525
- ./nginx/app.conf:/etc/nginx/conf.d/default.conf:ro
2626
- ..:/srv:cached
@@ -40,7 +40,7 @@ services:
4040
target: mariadb
4141
restart: always
4242
ports:
43-
- '8306:3306'
43+
- '{{ add .Vars.system.ports 306 }}:3306'
4444
volumes:
4545
- mariadb:/var/lib/mysql:delegated
4646
- ./mariadb:/docker-entrypoint-initdb.d:ro
@@ -56,7 +56,7 @@ services:
5656
target: phpmyadmin
5757
restart: always
5858
ports:
59-
- '8300:80'
59+
- '{{ add .Vars.system.ports 300 }}:80'
6060
links:
6161
- mariadb
6262

@@ -73,7 +73,7 @@ services:
7373
target: maildev
7474
restart: always
7575
ports:
76-
- '8025:80'
76+
- '{{ add .Vars.system.ports 25 }}:80'
7777

7878
#######
7979
# App #

0 commit comments

Comments
 (0)