-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (88 loc) · 2.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (88 loc) · 2.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
####################################################################################################################
#### Local development environment #################################################################################
####################################################################################################################
php-local:
profiles: [ "local" ]
container_name: framework-php
build:
context: .
dockerfile: config/docker/php/local/Dockerfile
ports:
- "5173:5173"
- "4321:4321"
- "4173:4173"
environment:
- XDEBUG_PORT=9000
- XDEBUG_CLIENT_HOST=host.docker.internal
volumes:
- ./:/var/www/html
depends_on:
- mysql
- redis
networks:
- lion
nginx-local:
profiles: [ "local" ]
container_name: framework-nginx
build:
context: .
dockerfile: config/docker/nginx/local/Dockerfile
ports:
- "8000:443"
depends_on:
- php-local
volumes:
- ./:/var/www/html
networks:
- lion
####################################################################################################################
#### System services ###############################################################################################
####################################################################################################################
mysql:
# t4g.micro
profiles: [ "local" ]
image: mysql:8.4
container_name: framework-mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: lion_database
MYSQL_PASSWORD: lion
MYSQL_ROOT_PASSWORD: lion
volumes:
- mysql_data:/var/lib/mysql
networks:
- lion
cpuset: "0-1"
deploy:
resources:
limits:
cpus: "0.5"
memory: 1G
redis:
# t4g.nano
profiles: [ "local" ]
image: redis:latest
container_name: framework-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- lion
cpuset: "0-1"
deploy:
resources:
limits:
cpus: "0.25"
memory: 512M
volumes:
mysql_data:
driver: local
redis_data:
driver: local
networks:
lion:
driver: bridge
name: lion-framework-network