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()); (new MediaModel('audio'))->updateMedia($this->getAudio());
} else { } else {
$audio = new Audio([ $audio = new Audio([
'file_key' => 'podcasts/' . $this->getPodcast()->handle . '/' . pathinfo( 'file_key' => 'podcasts/' . $this->getPodcast()->handle . '/' . $file->getRandomName(),
$file->getRandomName(),
PATHINFO_FILENAME
) . '.' . $file->getExtension(),
'language_code' => $this->getPodcast() 'language_code' => $this->getPodcast()
->language_code, ->language_code,
'uploaded_by' => $this->attributes['updated_by'], 'uploaded_by' => $this->attributes['updated_by'],

View File

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

View File

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

View File

@ -74,7 +74,7 @@ to help you kickstart your contribution.
# ----------------------- # -----------------------
#media.fileManager="s3" #media.fileManager="s3"
#media.s3.bucket="castopod" #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 #media.s3.pathStyleEndpoint=true
``` ```