-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (60 loc) · 1.24 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
services:
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
ports:
- "8087:80"
- "5173:5173"
networks:
- internal
volumes:
- ../backend/:/var/www/html/backend
- ./logs/nginx:/var/log/nginx/
container_name: nginx
php:
build:
context: ./php/context
dockerfile: Dockerfile
networks:
- internal
volumes:
- ../backend/:/var/www/html/backend
- ./logs/php.log:/var/log/fpm-php.www.log
container_name: php
expose:
- 9000
- 5173:5173 # Expose Vite dev server port
mysql:
container_name: db
restart: always
image: mysql:latest
platform: linux/x86_64
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_USER: 'HumanitarianAids'
MYSQL_PASSWORD: 'HumanitarianAids'
MYSQL_DATABASE: 'HumanitarianAids'
volumes:
- ./db-data:/var/lib/mysql
networks:
- internal
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
restart: always
ports:
- "8081:80"
environment:
PMA_HOST: db
PMA_PORT: 3306
depends_on:
- mysql
networks:
- internal
networks:
internal:
driver: bridge