build(devcontainer): update network's subnet to 172.31.0.0/24

This commit is contained in:
Yassine Doghri 2023-08-02 19:05:12 +02:00
parent 6a9d14d24e
commit 26a714d9c2
4 changed files with 9 additions and 11 deletions

View File

@ -238,10 +238,7 @@ class Episode extends Entity
(new MediaModel('audio'))->updateMedia($this->getAudio());
} else {
$audio = new Audio([
'file_key' => 'podcasts/' . $this->getPodcast()->handle . '/' . pathinfo(
$file->getRandomName(),
PATHINFO_FILENAME
) . '.' . $file->getExtension(),
'file_key' => 'podcasts/' . $this->getPodcast()->handle . '/' . $file->getRandomName(),
'language_code' => $this->getPodcast()
->language_code,
'uploaded_by' => $this->attributes['updated_by'],

View File

@ -48,6 +48,7 @@
}
},
"scripts": {
"dev": "php spark serve",
"test": "vendor/bin/phpunit --no-coverage",
"analyse": "vendor/bin/phpstan analyse --ansi",
"rector": "vendor/bin/rector process --dry-run --ansi --memory-limit=2G",

View File

@ -4,7 +4,7 @@ networks:
castopod:
ipam:
config:
- subnet: 172.100.0.0/24
- subnet: 172.31.0.0/24
services:
app:
@ -22,7 +22,7 @@ services:
- mariadb
networks:
castopod:
ipv4_address: 172.100.0.2
ipv4_address: 172.31.0.2
redis:
image: redis:alpine
@ -33,7 +33,7 @@ services:
- redis:/data
networks:
castopod:
ipv4_address: 172.100.0.3
ipv4_address: 172.31.0.3
mariadb:
image: mariadb:10.2
@ -50,7 +50,7 @@ services:
MYSQL_PASSWORD: castopod
networks:
castopod:
ipv4_address: 172.100.0.4
ipv4_address: 172.31.0.4
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
@ -67,7 +67,7 @@ services:
- mariadb
networks:
castopod:
ipv4_address: 172.100.0.5
ipv4_address: 172.31.0.5
s3:
image: adobe/s3mock:latest
@ -82,7 +82,7 @@ services:
- ./data/s3:/data:cached
networks:
castopod:
ipv4_address: 172.100.0.6
ipv4_address: 172.31.0.6
volumes:
redis:

View File

@ -74,7 +74,7 @@ to help you kickstart your contribution.
# -----------------------
#media.fileManager="s3"
#media.s3.bucket="castopod"
#media.s3.endpoint="http://172.100.0.6:9090/"
#media.s3.endpoint="http://172.31.0.6:9090/"
#media.s3.pathStyleEndpoint=true
```