-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 980 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 980 Bytes
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
# Services
services:
# Apache + PHP
apache_php_oo:
build:
context: ./.docker
dockerfile: Dockerfile
container_name: spoti
# Preparamos un volumen para almacenar nuestro código
volumes:
- ./src/:/var/www/html
- ./.docker/apache/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
- ./.docker/php/php.ini:/usr/local/etc/php/php.ini-development
expose:
- 80
ports:
- 8081:80
networks:
- spoti
links:
- mariadboo
extra_hosts:
- "host.docker.internal:host-gateway"
mariadboo:
image: mariadb
command:
--default-authentication-plugin=mysql_native_password
environment:
MARIADB_ROOT_PASSWORD: toor
MARIADB_DATABASE: spoti
MARIADB_USER: pablo
MARIADB_PASSWORD: espino
volumes:
- ./.docker/mysql:/var/lib/mysql:Z
ports:
- 3307:3306
networks:
- spoti
networks:
spoti:
name: spoti
driver: bridge