63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
version: '3'
|
|
|
|
networks:
|
|
internal-pod:
|
|
internal: true
|
|
external-pod:
|
|
internal: false
|
|
|
|
services:
|
|
mariadb:
|
|
image: mariadb:latest
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: rootpassfordev
|
|
MYSQL_DATABASE: dolibarr
|
|
ports:
|
|
- "3306:3306"
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|
|
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin
|
|
environment:
|
|
PMA_HOST: mariadb
|
|
depends_on:
|
|
- mariadb
|
|
ports:
|
|
- "8080:80"
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|
|
|
|
web:
|
|
build: .
|
|
environment:
|
|
HOST_USER_ID: $HOST_USER_ID
|
|
PHP_INI_DATE_TIMEZONE: $PHP_INI_DATE_TIMEZONE
|
|
PHP_INI_MEMORY_LIMIT: $PHP_INI_MEMORY_LIMIT
|
|
volumes:
|
|
- ../../htdocs:/var/www/html/
|
|
- ../../documents:/var/documents
|
|
ports:
|
|
- "80:80"
|
|
- "9000:9000"
|
|
depends_on:
|
|
- mariadb
|
|
- mail
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|
|
extra_hosts:
|
|
- "localhost.localdomain:127.0.0.1"
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
mail:
|
|
image: maildev/maildev
|
|
ports:
|
|
- "8081:1080"
|
|
- "25:1025"
|
|
networks:
|
|
- internal-pod
|
|
- external-pod
|