-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 973 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
services:
nginx:
build: ./etc/nginx/
container_name: nginx-container
ports:
- 80:80
links:
- php
volumes_from:
- app-data
php:
build: ./etc/php/
container_name: php-container
expose:
- 9000
volumes_from:
- app-data
app-data:
image: php:8.2-fpm
container_name: app-data-container
volumes:
- ./src/:/var/www/html/
command: "true"
mysql:
image: mariadb:10.11
container_name: mysql-container
volumes_from:
- mysql-data
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
mysql-data:
image: mariadb:10.11
container_name: mysql-data-container
volumes:
- /var/lib/mysql
command: "true"