-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
56 lines (51 loc) · 1.11 KB
/
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
49
50
51
52
53
54
55
56
version: '3.7'
networks:
yiipowered_public:
name: yiipowered_public
yiipowered_private:
name: yiipowered_private
volumes:
yiipowered_mysql:
php_socket:
services:
yiipowered:
container_name: yiipowered
image: yiipowered:latest
build:
context: './'
volumes:
- '.:/var/www'
- 'php_socket:/var/run/php'
depends_on:
- mysql
networks:
- yiipowered_private
nginx:
container_name: yiipowered_nginx
build:
context: './nginx'
volumes:
- './nginx/router:/etc/nginx/conf.d.local:ro'
- '.:/var/www'
- 'php_socket:/var/run/php'
ports:
- '80:80'
depends_on:
- yiipowered
networks:
yiipowered_public:
aliases:
- yiipowered.test
mysql:
container_name: yiipowered_mysql
image: 'mariadb:10.1.44'
ports:
- '3306:3306'
volumes:
- yiipowered_mysql:/var/lib/postgresql/data
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: yiipowered
networks:
- yiipowered_private