-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
47 lines (44 loc) · 1.16 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
version: "3.5"
# All parameters used are in .env file
services:
a-lumen-blog-backend:
image: fattureincloud/php:8.0-playground
container_name: a-lumen-blog-backend
environment:
- XDEBUG_MODE=${XDEBUG_MODE}
user: "www-data:www-data"
volumes:
# Code
- .:/var/www/html:cached
# container /tmp folder, used for profiler and other stuff
- ./private/tmp:/tmp:delegated
ports:
- ${PHP_HOST_PORT}:80
networks:
backend:
aliases:
- a-lumen-blog-backend
a-lumen-blog-db:
image: mysql:8
# !IMPORTANT!: This must be the same as DB_HOST variable in .env file
container_name: a-lumen-blog-db
# needed as of mysql 8
command: --default-authentication-plugin=mysql_native_password
volumes:
# Persistent DB data
- a-lumen-blog-db-data:/var/lib/mysql:delegated
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
ports:
- ${MYSQL_HOST_PORT}:3306
networks:
backend:
aliases:
- a-lumen-blog-db
volumes:
a-lumen-blog-db-data:
driver: local
networks:
backend:
name: a-lumen-blog-network