-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (56 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
63 lines (56 loc) · 1.05 KB
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
61
62
63
version: '3.1'
services:
web:
image: nginx:stable-alpine
restart: always
volumes:
- ./www:/var/www/laravel
- ./configs/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"
depends_on:
- db
- php
- cache
networks:
- backend
php:
build:
context: .
dockerfile: ./dockerfiles/php.Dockerfile
volumes:
- ./www:/var/www/laravel
restart: always
ports:
- "9000:9000"
networks:
- backend
db:
image: mysql:8.0
restart: always
ports:
- "3306:3306"
env_file:
- ./configs/mysql/.env
volumes:
- db-data-diplom2:/var/lib/mysql
networks:
- backend
cache:
image: redis:8.0-M03
volumes:
- cache-data-diplom:/data
- ./configs/redis/redis.conf:/usr/local/etc/redis/redis.conf
restart: always
ports:
- "6379:6379"
networks:
- backend
networks:
backend:
driver: bridge
volumes:
db-data-diplom2:
driver: local
cache-data-diplom:
driver: local