-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.41 KB
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
57
58
59
60
61
62
63
64
65
networks:
yiipowered_public:
name: yiipowered_public_php
yiipowered_private:
name: yiipowered_private_php
volumes:
yiipowered_mysql_php:
php_socket_php:
services:
yiipowered:
container_name: yiipowered_php
image: yiipowered:php
env_file:
- .env
build:
context: "./"
dockerfile: docker/php/Dockerfile
volumes:
- ".:/var/www"
- "php_socket_php:/var/run/php"
depends_on:
- mysql
networks:
- yiipowered_public
- yiipowered_private
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
container_name: yiipowered_nginx_php
build:
context: "./docker/nginx"
volumes:
- "./docker/nginx/local:/etc/nginx/conf.d:ro"
- ".:/var/www"
- "php_socket_php:/var/run/php"
ports:
- "80:80"
depends_on:
- yiipowered
networks:
yiipowered_public:
aliases:
- yiipowered.test
yiipowered_private: {}
mysql:
container_name: yiipowered_mysql_php
image: "mariadb:10.1.44"
ports:
- "3306:3306"
volumes:
- yiipowered_mysql_php:/var/lib/mysql/data
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
DB_DSN: ${DB_DSN}
networks:
yiipowered_private:
aliases:
- mysql
- yiipowered_mysql