-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (41 loc) · 1.04 KB
/
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
46
---
version: "3"
services:
php:
platform: linux/x86_64
build:
context: .
dockerfile: Dockerfile
env_file: .env
volumes:
- ".:/usr/src/app"
restart: unless-stopped
nginx:
platform: linux/x86_64
image: nginx:1.21.3-alpine
ports:
- 80:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./public:/usr/src/app/public
restart: unless-stopped
phpmyadmin:
platform: linux/x86_64
image: phpmyadmin
environment:
- PMA_ARBITRARY=1
ports:
- 8080:80
restart: unless-stopped
database:
image: mysql:8.0.27
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
volumes:
- db-data:/var/lib/mysql:rw
restart: unless-stopped
volumes:
db-data: ~