You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
775 B
42 lines
775 B
version: '3' |
|
services: |
|
# Nginx server configuration |
|
web: |
|
image: nginx:1.21.6 |
|
depends_on: |
|
- db |
|
- php |
|
links: |
|
- db |
|
- php |
|
volumes: |
|
- .:/var/www/html |
|
- ./docker/nginx:/etc/nginx/conf.d/ |
|
ports: |
|
- "8080:80" |
|
# Php-fpm configuration |
|
php: |
|
build: |
|
context: . |
|
dockerfile: docker/php/Dockerfile |
|
volumes: |
|
- .:/var/www/html |
|
- ./docker/php:/usr/local/etc/php/php.ini |
|
depends_on: |
|
- db |
|
# MariaDB configuration |
|
db: |
|
image: mariadb:10.3.32 |
|
restart: always |
|
environment: |
|
- MYSQL_DATABASE=db |
|
- MYSQL_ROOT_PASSWORD=db |
|
- MYSQL_USER=db |
|
- MYSQL_PASSWORD=db |
|
ports: |
|
- "3306:3306" |
|
volumes: |
|
- /dbdata:/var/lib/mysql |
|
|
|
volumes: |
|
dbdata:
|
|
|