-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (93 loc) · 2.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
httpd:
image: httpd:2.4-bookworm
container_name: httpd-citations
build:
context: .
dockerfile: docker/apache/Dockerfile
restart: always
volumes:
- ./docker/apache/vhost.conf:/usr/local/apache2/conf/extra/episciences-citations.conf
- .:/var/www/htdocs
- ./data:/var/www/data
- ./cache:/var/www/cache
- ./logs:/var/www/logs
ports:
- "80:80"
depends_on:
- php-fpm-citations
- db-citations
networks:
- epi-citations-network
command: >
/bin/sh -c "chown -R www-data:www-data /var/www/data /var/www/cache /var/www/logs && httpd-foreground"
php-fpm-citations:
container_name: php-fpm-citations
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
ports:
- "9004:9004" # Xdebug
restart: always
volumes:
- .:/var/www/htdocs
- ./data:/var/www/data
- ./cache:/var/www/cache
- ./logs:/var/www/logs
- ./docker/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.d/zz-custom.conf
- ./logs/xdebug.log:/var/www/logs
environment:
- PHP_FPM_LISTEN_PORT=9000
- XDEBUG_MODE=debug
- XDEBUG_CONFIG=client_host=host.docker.internal client_port=9003
expose:
- "9000" # Expose internal port 9000
networks:
- epi-citations-network
db-citations:
image: "mysql:8.4"
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
container_name: 'db-citations'
expose:
- "3306"
ports:
- "33063:3306"
volumes:
- mysql-db-citations:/var/lib/mysql
- type: bind
source: ./docker/mysql/citations.sql
target: /docker-entrypoint-initdb.d/init.sql
env_file:
- docker/mysql/mysql.env
networks:
- epi-citations-network
pma:
container_name: 'db-phpmyadmin-citations'
image: "phpmyadmin:latest"
environment:
- "PMA_PMADB=pma"
- "PMA_CONTROLUSER=root"
- "PMA_CONTROLPASS=root"
- "PMA_QUERYHISTORYDB=true"
- "PMA_USER=root"
- "PMA_PASSWORD=root"
- "PMA_ARBITRARY=1"
- "PMA_HOSTS=db-citations,db-indexing,db-auth"
- "PMA_VERBOSES=episciences,indexing,auth"
- "UPLOAD_LIMIT=2G"
- "MEMORY_LIMIT=1G"
ports:
- "8002:80"
depends_on:
- db-citations
links:
- db-citations
networks:
- epi-citations-network
networks:
epi-citations-network:
driver: bridge
volumes:
mysql-db-citations: