-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 865 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 865 Bytes
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
version: '3.8'
services:
php:
image: php:8.1-fpm
volumes:
- .:/var/www/html
working_dir: /var/www/html
environment:
- DB_CONNECTION=mysql
- DB_HOST=mysql
- DB_DATABASE=express_cycle_test
- DB_USERNAME=root
- DB_PASSWORD=secret
depends_on:
- mysql
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: express_cycle_test
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
postgres:
image: postgres:14
environment:
POSTGRES_DB: express_cycle_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
mysql_data:
postgres_data: