forked from mishamx/yupe-meetup-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 931 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
44
45
46
47
48
version: '2'
networks:
back:
front:
services:
php:
build: .
networks:
- back
volumes:
- appassets:/var/www/web/assets:rw
- ./:/var/www/
environment:
DB_TYPE: mysql
DB_HOST: db
DB_PORT: $MYSQL_PORT
DB_NAME: $MYSQL_DATABASE
DB_USER: $MYSQL_USER
DB_PASSWORD: $MYSQL_PASSWORD
DB_CHARSET: 'utf8'
DB_TABLE_PREFIX: ''
db:
image: mishamx/mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
networks:
- back
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
environment:
APP_HOST: php
networks:
- back
- front
ports:
- '$NGINX_PORT:80'
volumes:
- appassets:/var/www/web/assets
volumes:
appassets: