-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (60 loc) · 1.55 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
53
54
55
56
57
58
59
60
version: '3'
services:
mariadb:
image: bitnami/mariadb:10.5
environment:
- MARIADB_USER=app
- MARIADB_PASSWORD=app
- MARIADB_DATABASE=app
- MARIADB_ROOT_PASSWORD=app
restart: always
ports:
- 3306:3306
volumes:
- mariadb_data:/bitnami
- ./docs:/app/docs
php:
image: webdevops/php-dev:7.4
environment:
- PHP_DATE_TIMEZONE=Europe/Berlin
depends_on:
- mariadb
volumes:
- .:/app:cached
working_dir: /app
user: '1000:1000'
nginx:
image: webdevops/nginx-dev:alpine
environment:
- WEB_DOCUMENT_ROOT=/app/public
volumes:
- .:/app
- ./config/docker/etc/nginx/vhost.common.d:/opt/docker/etc/nginx/vhost.common.d
ports:
- 80:80
- 443:443
redis:
image: bitnami/redis:latest
environment:
- REDIS_MASTER_PASSWORD=app
- REDIS_PASSWORD=app
ports:
- 6379:6379
volumes:
- redis_data:/bitnami/redis
mariadb_test:
image: bitnami/mariadb:10.5
environment:
- MARIADB_USER=app
- MARIADB_PASSWORD=app
- MARIADB_DATABASE=app_test
- MARIADB_ROOT_PASSWORD=app
restart: always
ports:
- 3307:3306
volumes:
- mariadb_test_data:/bitnami
volumes:
mariadb_data:
redis_data:
mariadb_test_data: