-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (54 loc) · 1.32 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
version: '3'
services:
php:
build:
context: . # Use the current directory as the build context
dockerfile: Dockerfile # Use the custom Dockerfile
container_name: openbiblio-php
ports:
- "4523:80"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./src:/var/www/html
depends_on:
- mysql
environment:
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
links:
- mysql
networks:
- openBiblio
mysql:
image: mysql
container_name: openbiblio-db
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "3307:3306" # Map MySQL port if needed
networks:
- openBiblio
volumes:
- ./data/db:/var/lib/mysql
command: --character-set-server=latin1 --collation-server=latin1_german1_ci
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: openbiblio-phpmyadmin
depends_on:
- mysql
environment:
PMA_HOST: openbiblio-db
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
ports:
- "8085:80"
networks:
- openBiblio
networks:
openBiblio: