-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (40 loc) · 977 Bytes
/
docker-compose.yaml
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
version: '3'
services:
mysql:
container_name: sf_mysql
image: mariadb:10.5
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: pawel
MYSQL_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
ports:
- "3306:3306"
php:
container_name: sf_php
build:
context: .
dockerfile: docker/php/Dockerfile
restart: on-failure
volumes:
- './:/usr/src/app'
user: ${LOCAL_USER}
nginx:
container_name: sf_nginx
image: nginx:latest
restart: on-failure
volumes:
- './public/:/usr/src/app'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
ports:
- '${NGINX_PORT}:80'
depends_on:
- php
elasticsearch:
container_name: sf_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.9
environment:
discovery.type: "single-node"
ports:
- "9200:9200"