-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.11 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'
networks:
file-manager-service:
services:
nginx:
image: nginx:stable-alpine
container_name: file-manager-service-nginx
ports:
- '8050:80'
volumes:
- ./laravel:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- fpm
networks:
- file-manager-service
restart: always
fpm:
build:
context: .
dockerfile: fpm/Dockerfile
container_name: file-manager-service-fpm
volumes:
- ./laravel:/var/www/html
- ./fpm/upload.ini:/usr/local/etc/php/conf.d/upload.ini
networks:
- file-manager-service
restart: always
mariadb:
image: mariadb:latest
container_name: file-manager-service-mariadb
tty: true
ports:
- '8051:3306'
environment:
MYSQL_DATABASE: file-manager-service
MYSQL_USER: lfm
MYSQL_PASSWORD: lfm
MYSQL_ROOT_PASSWORD: lfm
volumes:
- 'file-manager-service-mariadb:/var/lib/mysql'
- './mariadb:/etc/mysql/conf.d'
networks:
- file-manager-service
restart: always
volumes:
file-manager-service-mariadb: null