-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker-compose.yml
112 lines (105 loc) · 2.24 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: "3.3"
services:
# Redis
awes-demo-redis:
restart: always
hostname: awes-demo-redis
container_name: awes-demo-redis
image: redis:4.0-alpine
expose:
- "6379"
volumes:
- ./docker/redis:/data
networks:
awes_demo:
ipv4_address: 172.29.1.2
# MYSQL
awes-demo-mysql:
restart: always
hostname: awes-demo-mysql
container_name: awes-demo-mysql
image: mysql:5.7
expose:
- "3306"
ports:
- "5307:3306"
- "53060:33060"
command: "--innodb_use_native_aio=0"
volumes:
- ./docker/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: awes
MYSQL_DATABASE: awes
MYSQL_USER: awes
MYSQL_PASSWORD: awes
networks:
awes_demo:
ipv4_address: 172.29.1.3
# PhpMyAdmin
awes-demo-pma:
restart: always
hostname: awes-demo-pma
container_name: awes-demo-pma
image: phpmyadmin/phpmyadmin:4.6
links:
- awes-demo-mysql:db
ports:
- "5081:80"
networks:
awes_demo:
ipv4_address: 172.29.1.4
# PHP
awes-demo-php:
restart: always
hostname: awes-demo-php
container_name: awes-demo-php
image: awescodehub/php-7.2-fpm
expose:
- "9000"
volumes:
- ./:/app
links:
- awes-demo-redis
- awes-demo-mysql
networks:
awes_demo:
ipv4_address: 172.29.1.5
# supervisor
# awes-demo-supervisor:
# restart: always
# hostname: awes-demo-supervisor
# container_name: awes-demo-supervisor
# build: ./docker/supervisor
# image: awescrm:supervisor
# expose:
# - "9001"
# volumes:
# - ./docker/supervisor/supervisord.conf:/etc/supervisord.conf
# - ./:/app
# networks:
# awes_demo:
# ipv4_address: 172.29.1.6
# NGINX
awes-demo-nginx:
restart: always
hostname: awes-demo-nginx
container_name: awes-demo-nginx
image: nginx:1.13
ports:
- "5080:5080"
- "5443:5443"
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
- ./:/app
links:
- awes-demo-pma
- awes-demo-php
networks:
awes_demo:
ipv4_address: 172.29.1.7
networks:
awes_demo:
ipam:
driver: default
config:
- subnet: 172.29.1.0/24