-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (47 loc) · 1.21 KB
/
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
45
46
47
48
49
50
#version: '3'
services:
app:
build:
context: ./docker/php
volumes:
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- .:/var/www
depends_on:
- database
networks:
- mirspay
nginx:
image: nginx:latest
depends_on:
- app
volumes:
- .:/var/www
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
ports:
- '80:80'
networks:
- mirspay
###> doctrine/doctrine-bundle ###
database:
image: 'mysql:8.0'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- '3306:3306'
volumes:
- ./docker/database/init.sql:/docker-entrypoint-initdb.d/init.sql
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
networks:
- mirspay
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###
networks:
mirspay:
driver: bridge