-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
52 lines (46 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
version: "3"
services:
# --- MariaDB
db:
container_name: "${APP_NAME}-db"
image: bitnami/mariadb:10.7
environment:
- MARIADB_ROOT_PASSWORD=${DB_PASSWORD}
- MARIADB_USER=${DB_USERNAME}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_DATABASE}
ports:
- "127.0.0.1:3306:3306"
volumes:
- project-db:/bitnami:delegated
# --- PHP
php:
container_name: "${APP_NAME}-php"
image: bitnami/php-fpm:8.1
depends_on:
- db
- redis
volumes:
- .:/app:delegated
- ./docker/php.ini:/opt/bitnami/php/etc/conf.d/php.ini:ro
# --- nginx
nginx:
container_name: "${APP_NAME}-nginx"
image: bitnami/nginx:1.21
ports:
- "80:8080"
depends_on:
- php
volumes:
- .:/app:delegated
- ./docker/nginx.conf:/opt/bitnami/nginx/conf/server_blocks/site.conf:ro
# --- Redis
redis:
container_name: "${APP_NAME}-redis"
image: bitnami/redis:6.2
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
project-db:
driver: local