-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
48 lines (41 loc) · 1 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
version: '3.4'
services:
mariadb:
image: bitnami/mariadb:10.3.34
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
ports:
- 3306:3306
volumes:
- mariadb_data:/bitnami/mariadb/data
php-fpm:
image: nesfit/jane-smashed:1.1
build:
context: ./php-fpm
dockerfile: Dockerfile
ports:
- ${WEBAPP_HTTP_PORT}:80
# - ${WEBAPP_HTTPS_PORT}:443
volumes:
- lara_data:/app
volumes:
lara_data:
# driver: local-persist
# driver_opts:
# mountpoint: "${LOCAL_VOLUME_MOUNT_POINT}/php-fpm/data"
mariadb_data:
# driver: local-persist
# driver_opts:
# mountpoint: "${LOCAL_VOLUME_MOUNT_POINT}/php-fpm/data"
networks:
default:
external:
name: ${NETWORK}
x-logging:
driver: json-file
options:
max-size: '20m'
max-file: '5'