-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (40 loc) · 1003 Bytes
/
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
version: '3'
services:
redis:
build:
context: docker/redis
networks:
- local_network
volumes:
- ./docker/redis/redis.conf:/etc/redis/redis.conf
php-fpm:
build:
context: docker/php-fpm
volumes:
- ./src:/var/www
networks:
- local_network
nginx:
build:
context: docker/nginx
volumes:
- ./src:/var/www
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/sites/:/etc/nginx/sites-available
- ./docker/nginx/conf.d/:/etc/nginx/conf.d
networks:
- local_network
links:
- php-fpm
ports:
- "80:80"
mariadb:
image: mariadb:10.5.5
environment:
MYSQL_ROOT_PASSWORD: "rootpassword"
networks:
- local_network
ports:
- "3306:3306"
networks:
local_network: