-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 971 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
40
41
42
43
44
45
46
47
version: '3.7'
networks:
services:
driver: bridge
volumes:
dbdata:
#definizione di un yaml template da usare poi negli altri servizi
x-op-service-default: &service_default
restart: unless-stopped
init: true
services:
db:
<<: *service_default
container_name: db
image: registry.gem.lan/mysql:8.0
env_file: .env
environment:
- MYSQL_DATABASE=taxonomy
volumes:
- dbdata:/var/lib/mysql
command: '--default-authentication-plugin=mysql_native_password'
networks:
services:
joomla:
<<: *service_default
container_name: joomla
image: registry.gem.lan/joomla:4.2.9-php8.0
user: ${CURRENT_UID}
ports:
- "80:80"
env_file: .env
environment:
- JOOMLA_DB_HOST=db
- JOOMLA_DB_USER=$MYSQL_USER
- JOOMLA_DB_PASSWORD=$MYSQL_PASSWORD
- JOOMLA_DB_NAME=taxonomy
volumes:
- ./site:/var/www/html
depends_on:
- db
networks:
services: