-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (39 loc) · 942 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
version: '3'
services:
top-places-db-host:
image: mariadb:10.1.35
container_name: top-places-db
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "3310:3306/tcp"
volumes:
- ./docker/mysql/initdb:/docker-entrypoint-initdb.d
top-places-app:
container_name: top-places-app
build:
context: docker/php7-fpm
args:
TIMEZONE: ${TIMEZONE}
volumes:
- .:/var/www/top-places
environment:
- APP_DEBUG=1
- PHP_IDE_CONFIG=docker.for.mac.localhost
env_file:
- .env
top-places-webserver:
build: docker/nginx
container_name: top-places-webserver
environment:
- COMPOSE_HTTP_TIMEOUT=120
ports:
- "81:80/tcp"
volumes:
- ./var/log/nginx/:/var/log/nginx
- .:/var/www/top-places
expose:
- 80