-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1021 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
version: '3'
services:
nginx:
image: nginx:latest
ports:
- "8086:80"
volumes:
- ./docker-config/nginx-pica.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/pica
links:
- php
php:
build:
context: .
dockerfile: ./docker-config/Dockerfile-php
volumes:
- ./:/var/www/pica
links:
- database
- elasticsearch
depends_on:
- database
- elasticsearch
database:
image: mysql:8.0.22
ports:
- "33060:3306"
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./data/fonoteka.sql:/docker-entrypoint-initdb.d/00_pica.sql
environment:
MYSQL_ROOT_PASSWORD: huehuehuehue
MYSQL_DATABASE: fonoteka_pica
MYSQL_USER: FONOTEKA
MYSQL_PASSWORD: huehuehue
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
cap_add:
- SYS_NICE
elasticsearch:
image: elasticsearch:6.8.22
environment:
- xpack.security.enabled=false
- discovery.type=single-node