Skip to content

Commit c5fdca8

Browse files
committed
publish container ports only on IPv4 localhost
1 parent 9708952 commit c5fdca8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compose.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ services:
4949
- ./public/fonts:/var/linuxfr/fonts:Z
5050
- data-uploads:/var/linuxfr/uploads
5151
ports:
52-
- "80:80"
52+
- target: 80
53+
published: 127.0.0.1:80
54+
protocol: tcp
5355
depends_on:
5456
- linuxfr.org
5557
- linuxfr-board
@@ -61,7 +63,9 @@ services:
6163
env_file:
6264
- deployment/default.env
6365
ports:
64-
- "3306:3306"
66+
- target: 3306
67+
published: 127.0.0.1:3306
68+
protocol: tcp
6569
volumes:
6670
- data-database:/var/lib/mysql
6771

0 commit comments

Comments
 (0)